Functions which handle the IR-beacon sensors. More...
Modules | |
Advanced informations | |
Enumerations | |
enum | eTsop |
clusters the states of the beacon sensors More... | |
enum | eTsopGet |
clusters select values for reading the beacon measurements More... | |
Request Funktions | |
void | tsops_request (eRequestType request) |
Requests new data from the tsop sensors. More... | |
uint8_t | tsops_received (void) |
Indicates if new data for the data block sTsop was received. More... | |
uint8_t | tsops_changed (void) |
Indicates if new data changed the data block sTsop. More... | |
Access Funktions | |
eTsop | tsops_get (eTsopGet select) |
Returns the last stored value of the selected tsop sensor. More... | |
Functions which handle the IR-beacon sensors.
example
enum eTsop |
clusters the states of the beacon sensors
enum eTsopGet |
clusters select values for reading the beacon measurements
Enumerator | |
---|---|
kTsopGetLeft | constants (1): left ir-beacon sensor |
kTsopGetMiddle | constants (2): middle ir-beacon sensor |
kTsopGetRight | constants (3): right ir-beacon sensor |
uint8_t tsops_changed | ( | void | ) |
Indicates if new data changed the data block sTsop.
Because of noise the variables will probably be changed every time new data is received.
The return value is boolean.
Returns the last stored value of the selected tsop sensor.
This function relies on the internal data block sTsop - for new data use tsops_request().
select | value of the selected tsop sensor - see also eTsopGet |
uint8_t tsops_received | ( | void | ) |
Indicates if new data for the data block sTsop was received.
The return value is boolean.
void tsops_request | ( | eRequestType | request | ) |
Requests new data from the tsop sensors.
For details on the request schema see The general request.
Involved data blocks are:
sTsop