Antoine C / Mbed 2 deprecated Copy_Assignment3

Dependencies:   mbed MCP23017 WattBob_TextLCD mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

carStructure Struct Reference

carStructure Struct Reference

This structure is the main structure used by the program in order not to use global variables. More...

#include <my_structures.h>


Detailed Description

This structure is the main structure used by the program in order not to use global variables.

It is given as argument to every function used in the different RTOSTimer.

Parameters:
System Inputs [AnalogIn/DigitalIn] Set of system inputs used by the system for the assignment.
System Outpus [AnalogOut/DigitalOut] Set of system outputs used by the system for the assignment.
Structures [engineRAWValues/carStatistics] Two smaller structures used to organized values used by the different tasks of the assigment.
*p_mailQueue Mail Queue object, from "rtos.h". It uses a mailStruct structure to store information.
nbElementInQueue [int] Number of element in the queue. Necessary in order to dump the mail by another task and because there is no method to get the number of element stored in the mail queue.
Mutex [Mutex] Set of three mutex to protect the access of the engineRAWValues and carStatistics structures, as well as the mail queue object.
*p_PC [Serial] Serial connection to the PC
Screen Variables [MCP23017/WattBob_TextLCD] Used to access the screen of the MBED shield.

Definition at line 117 of file my_structures.h.