Synergy Software Package User's Manual
sf_thread_monitor_instance_ctrl_t Struct Reference

#include <sf_thread_monitor.h>

Public Member Functions

uint8_t stack [THREAD_MONITOR_THREAD_STACK_SIZE] BSP_ALIGN_VARIABLE_V2 (BSP_STACK_ALIGNMENT)
 

Data Fields

uint32_t open
 
wdt_instance_t const * p_lower_lvl_wdt
 
uint32_t timeout_period_msec
 
uint32_t timeout_period_watchdog_clocks
 
bool profiling_mode_enabled
 
TX_MUTEX mutex
 Mutex to protect access to the thread counters.
 
uint32_t profiling_mode_check
 
sf_thread_monitor_thread_counter_t thread_counters [THREAD_MONITOR_CFG_MAX_NUMBER_OF_THREADS]
 
TX_THREAD thread
 Thread monitor thread.
 
void const * p_extend
 Extended configuration data.
 

Detailed Description

Thread monitor control block. DO NOT INITIALIZE. Initialization occurs when sf_thread_monitor_api_t::open is called.

Member Function Documentation

◆ BSP_ALIGN_VARIABLE_V2()

uint8_t stack [THREAD_MONITOR_THREAD_STACK_SIZE] sf_thread_monitor_instance_ctrl_t::BSP_ALIGN_VARIABLE_V2 ( BSP_STACK_ALIGNMENT  )

Stack for thread monitor thread.

Field Documentation

◆ open

uint32_t sf_thread_monitor_instance_ctrl_t::open

Used by driver to check if the control structure is valid

◆ p_lower_lvl_wdt

wdt_instance_t const* sf_thread_monitor_instance_ctrl_t::p_lower_lvl_wdt

Pointer to interface structure for the watchdog peripheral

◆ profiling_mode_check

uint32_t sf_thread_monitor_instance_ctrl_t::profiling_mode_check

Value used to verify profiling mode is enabled when prfiling_mode_enabled == true.

◆ profiling_mode_enabled

bool sf_thread_monitor_instance_ctrl_t::profiling_mode_enabled

Used by the driver to check if profiling mode is enabled.

◆ thread_counters

sf_thread_monitor_thread_counter_t sf_thread_monitor_instance_ctrl_t::thread_counters[THREAD_MONITOR_CFG_MAX_NUMBER_OF_THREADS]

Data storage for the thread counter information.

◆ timeout_period_msec

uint32_t sf_thread_monitor_instance_ctrl_t::timeout_period_msec

Time in milliseconds of the watchdog timeout period. Used to calculate the period of the monitoring thread.

◆ timeout_period_watchdog_clocks

uint32_t sf_thread_monitor_instance_ctrl_t::timeout_period_watchdog_clocks

Maximum count value of the watchdog. Used to synchronise to the count.


The documentation for this struct was generated from the following file: