Vision Apps User Guide
app_log_cpu_shared_mem_t Struct Reference

Detailed Description

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]
 

Field Documentation

◆ log_rd_idx

volatile uint32_t app_log_cpu_shared_mem_t::log_rd_idx

Init by reader to 0

◆ log_wr_idx

volatile uint32_t app_log_cpu_shared_mem_t::log_wr_idx

Init by writer to 0

◆ log_area_is_valid

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

◆ log_cpu_sync_state

volatile uint32_t app_log_cpu_shared_mem_t::log_cpu_sync_state

CPU sync state

◆ log_cpu_name

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

◆ log_mem

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