GaIA BIOS Library
Loading...
Searching...
No Matches
io_task_azure_rtos.h File Reference

IO thread function prototypes for Azure RTOS ThreadX. More...

#include "tx_api.h"

Functions

TX_THREAD * gwa_io_thread_create (void)
 Creates the IO handling thread.
void diag_error_callback (uint8_t out)
 This function gets called when an error occurs in the diagnostics of the outputs.
void out_error_callback (uint8_t out)
 This function gets called when the output data read does not match with data previously written.

Variables

TX_MUTEX outMutex
 Mutex used for synchronize access to output values.

Detailed Description

IO thread function prototypes for Azure RTOS ThreadX.

Author
Tecnologix, 2021

Function Documentation

◆ diag_error_callback()

void diag_error_callback ( uint8_t out)

This function gets called when an error occurs in the diagnostics of the outputs.

This function should be provided by the user.

Parameters
outoutput port having the problem. The user should use the diag_data values to know which of the 8 outputs of the out port have a problem.

◆ gwa_io_thread_create()

TX_THREAD * gwa_io_thread_create ( void )

Creates the IO handling thread.

Returns
the thread id.

◆ out_error_callback()

void out_error_callback ( uint8_t out)

This function gets called when the output data read does not match with data previously written.

This function should be provided by the user.

Parameters
outoutput port having the problem. The user can use the oldoutw_data (values previously written) and oldoutr_data (values read back) values to know the values that caused the problem.