Vision Apps User Guide
app_log_init_prm_t Struct Reference

Detailed Description

Init parameters to use for appLogInit()

Data Fields

app_log_shared_mem_tshared_mem
 
uint32_t self_cpu_index
 
char self_cpu_name [APP_LOG_MAX_CPU_NAME]
 
uint32_t log_rd_task_pri
 
uint32_t log_rd_poll_interval_in_msecs
 
uint32_t log_rd_max_cpus
 
uint32_t log_rd_cpu_enable [APP_LOG_MAX_CPUS]
 
app_log_device_send_string_f device_write
 

Field Documentation

◆ shared_mem

app_log_shared_mem_t* app_log_init_prm_t::shared_mem

Shared memory to use for logging, all CPUs must point to the same shared memory. This is physical address in case of linux

◆ self_cpu_index

uint32_t app_log_init_prm_t::self_cpu_index

Index into shared memory area for self CPU to use to use when writing. Two CPUs must not use the same CPU index

◆ self_cpu_name

char app_log_init_prm_t::self_cpu_name[APP_LOG_MAX_CPU_NAME]

self CPU name

◆ log_rd_task_pri

uint32_t app_log_init_prm_t::log_rd_task_pri

task priority for log reader, set to 0xFFFFFFFF for default task priority

◆ log_rd_poll_interval_in_msecs

uint32_t app_log_init_prm_t::log_rd_poll_interval_in_msecs

polling interval for log reader in msecs

◆ log_rd_max_cpus

uint32_t app_log_init_prm_t::log_rd_max_cpus

Maximum CPUs that log into the shared memory

◆ log_rd_cpu_enable

uint32_t app_log_init_prm_t::log_rd_cpu_enable[APP_LOG_MAX_CPUS]

1: enable reading from log memory, else disable

◆ device_write

app_log_device_send_string_f app_log_init_prm_t::device_write

Callback to write a string to a device specific function, by default this will be set to appUartWriteString()