Functions which handle the library mode. More...
Modules | |
| Advanced informations | |
Enumerations | |
| enum | eMode |
| clusters the states of the mode More... | |
Request Funktions | |
| void | mode_request (eRequestType request) |
| Requests new data from the mode of the TUC-Bot. More... | |
| uint8_t | mode_received (void) |
| Indicates if new data for the data block sMD_Mode was received. More... | |
| uint8_t | mode_changed (void) |
| Indicates if new data changed the data block sMD_Mode. More... | |
| uint8_t | mode_transmitted (void) |
| Indicates if the data block sMD_Mode was transmitted. More... | |
Access Funktions | |
| eMode | mode_get (void) |
| Returns the last stored mode of the TUC-Bot. More... | |
| void | mode_set (eMode mode) |
| Sets the mode of the TUC-Bot. More... | |
Functions which handle the library mode.
The mode can only be set to pupils mode if the programm is compiled with the pupils version of the TUC-Bot library!
See also mode_set().
example
| enum eMode |
clusters the states of the mode
| Enumerator | |
|---|---|
| kModePupil | constant (0): robot is in pupil mode |
| kModeStudent | constant (1): robot is in student mode |
| uint8_t mode_changed | ( | void | ) |
Indicates if new data changed the data block sMD_Mode.
The return value is boolean.
| eMode mode_get | ( | void | ) |
Returns the last stored mode of the TUC-Bot.
This function relies on the internal data block sMD_Mode - for new data use mode_request().
| uint8_t mode_received | ( | void | ) |
Indicates if new data for the data block sMD_Mode was received.
The return value is boolean.
| void mode_request | ( | eRequestType | request | ) |
Requests new data from the mode of the TUC-Bot.
For details on the request schema see The general request.
Involved data blocks are:
sMD_Mode
| request | See also eRequestType |
| void mode_set | ( | eMode | mode | ) |
Sets the mode of the TUC-Bot.
This function changes the internal data block sMD_Mode.
| mode | value representing the current mode - see also eMode |
| uint8_t mode_transmitted | ( | void | ) |
Indicates if the data block sMD_Mode was transmitted.
The return value is boolean.
1.8.17