io.c File Reference


Detailed Description

Implementation of the common io application stuff.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2010-11-01


Data Structures

struct  IoData_t
 This typedef defines the peristent structure for common application settings. More...

Functions

void IoEarlyInit (void)
 Call this function prior calling of all other modules.
BOOL IoInit (void)
 Call this function to init the IO project and its sub modules.
void IoSetNewSerialMode (SerialMode_t Mode)
 Configures the new mode, which is written to EEPROM.
SerialMode_t IoGetSerialMode (BOOL bPersistent)
 Delivers the current configured IO mode.
void IoResetToFactory (void)
 Reset the persitent settings of the IO project to well known states.
BOOL IoInitTasks (void)
 Initializes the IO project tasks.
void IoTasks (void)
 Executes the IO project tasks.
void IoStopTasks (void)
 Stops the IO project tasks.
BOOL IoCheckForStoppedTasks (void)
 Checks for stopped IO project tasks.
void IoShutdown (void)
 Is called once after the main cycle is breaked due shutdown or restart requests.


Function Documentation

BOOL IoCheckForStoppedTasks ( void   ) 

Checks for stopped IO project tasks.

Should be called after IoStopTasks.

Return values:
TRUE Tasks are stopped.
FALSE Tasks are running yet.

void IoEarlyInit ( void   ) 

Call this function prior calling of all other modules.

SerialMode_t IoGetSerialMode ( BOOL  bPersistent  ) 

Delivers the current configured IO mode.

Parameters:
bPersistent If TRUE the mode is read from EEPROM, if FALSE the mode is read from local state.
Returns:
The IO mode as enumerated value.

BOOL IoInit ( void   ) 

Call this function to init the IO project and its sub modules.

Return values:
TRUE Initialization was successful.
FALSE Initialization failed.

BOOL IoInitTasks ( void   ) 

Initializes the IO project tasks.

Return values:
TRUE Initialization of all tasks was successful.
FALSE At least one task initialization has failed, try again later.

void IoResetToFactory ( void   ) 

Reset the persitent settings of the IO project to well known states.

void IoSetNewSerialMode ( SerialMode_t  Mode  ) 

Configures the new mode, which is written to EEPROM.

Note:
This new value do not change the current mode - it takes affect after restart first.
Parameters:
Mode The IO mode as enumerated value.

void IoShutdown ( void   ) 

Is called once after the main cycle is breaked due shutdown or restart requests.

void IoStopTasks ( void   ) 

Stops the IO project tasks.

void IoTasks ( void   ) 

Executes the IO project tasks.


Generated on Fri Mar 29 10:34:27 2013 for Netzer by  doxygen 1.5.5