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

IO thread function prototypes for CMSIS-OS. More...

#include "cmsis_os.h"

Functions

osThreadId 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

osMutexId outMutexId
 Mutex used for synchronize access to output values.

Detailed Description

IO thread function prototypes for CMSIS-OS.

Author
Tecnologix, 2014

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()

osThreadId 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.