Shared memory structure used for logging by a specific CPU.
This state of the log buffer, user can ignore it.
Data Fields | |
volatile uint32_t | log_rd_idx |
volatile uint32_t | log_wr_idx |
volatile uint32_t | log_area_is_valid |
volatile uint32_t | log_cpu_sync_state |
volatile uint8_t | log_cpu_name [APP_LOG_MAX_CPU_NAME] |
volatile uint8_t | log_mem [APP_LOG_PER_CPU_MEM_SIZE] |
volatile uint32_t app_log_cpu_shared_mem_t::log_rd_idx |
Init by reader to 0
volatile uint32_t app_log_cpu_shared_mem_t::log_wr_idx |
Init by writer to 0
volatile uint32_t app_log_cpu_shared_mem_t::log_area_is_valid |
Init by writer to APP_LOG_AREA_VALID_FLAG. reader will ignore this CPU shared mem log until the writer sets this to APP_LOG_AREA_VALID_FLAG
volatile uint32_t app_log_cpu_shared_mem_t::log_cpu_sync_state |
CPU sync state
volatile uint8_t app_log_cpu_shared_mem_t::log_cpu_name[APP_LOG_MAX_CPU_NAME] |
Init by writer to CPU name, used by reader to add a prefix when writing to console device
volatile uint8_t app_log_cpu_shared_mem_t::log_mem[APP_LOG_PER_CPU_MEM_SIZE] |
memory into which logs are written by this CPU