|
| void | Thief_Trip (uint8_t score) |
| | send TRIP message over network to Brainframe More...
|
| |
| void | Thief_Access (uint8_t score) |
| | send ACCESS message over network to Brainframe More...
|
| |
| void | Thief_Error (uint8_t error_code) |
| | send ERROR message over network to Brainframe More...
|
| |
| void | Thief_Init (void(*ChipEnable)(uint8_t), void(*ChipSelectNot)(uint8_t), void(*Arm)(void), void(*Disarm)(void), void(*Difficulty)(uint8_t)) |
| | initialize the nRF24 Network module for the Thief node and set callbacks More...
|
| |
THIEF_SPI should be defined in project_settings.h
| void Thief_Access |
( |
uint8_t |
score | ) |
|
send ACCESS message over network to Brainframe
- Parameters
-
| score | byte (0 - score not used, 1 - great job, 255 - face palm) |
| void Thief_Error |
( |
uint8_t |
error_code | ) |
|
send ERROR message over network to Brainframe
- Parameters
-
| error_code | byte (codes TBD) |
| void Thief_Init |
( |
void(*)(uint8_t) |
ChipEnable, |
|
|
void(*)(uint8_t) |
ChipSelectNot, |
|
|
void(*)(void) |
Arm, |
|
|
void(*)(void) |
Disarm, |
|
|
void(*)(uint8_t) |
Difficulty |
|
) |
| |
initialize the nRF24 Network module for the Thief node and set callbacks
- Parameters
-
| ChipEnable | Function pointer to method that controls chip enable pin via GPIO |
| ChipSelectNot | Function pointer to method that controls the SPI chip select for the nRF24L01+ |
| Arm | (optional)Function pointer to call when ARM message received from brainframe |
| Disarm | (optional)Function pointer to call when DISARM message received from brainframe |
| Difficulty | (optional) Function pointer to call when a non-zero difficulty value is received from the brainframe (1 - easy, 255 - freakin impossible) |
| void Thief_Trip |
( |
uint8_t |
score | ) |
|
send TRIP message over network to Brainframe
- Parameters
-
| score | byte (0 - score not used, 1 - barely tripped, 255 - not trying) |