![]() |
Autodrone
Multi-Domain Vehicle
|
This file initializes the ibus receiver protocol. More...
Go to the source code of this file.
Macros | |
| #define | IBUS_FRAME_SIZE_MAX 32 |
| #define | PAYLOAD_SIZE (IBUS_FRAME_SIZE_MAX - 4U) |
| #define | CRC_SIZE 2 |
| #define | RC_CHANNELS (PAYLOAD_SIZE / 2U) |
| #define | ARRAY_LEN(x) (sizeof(x) / sizeof((x)[0])) |
Enumerations | |
| enum | { IBUS_STATE_LENGTH , IBUS_STATE_TYPE , IBUS_STATE_PAYLOAD , IBUS_STATE_CRC } |
| enum | ibusStatus_e { IBUS_READY , IBUS_BUSY , IBUS_ERROR } |
Functions | |
| bool | ibusInit (void) |
| Initializes ibus ring buffer and low level usart registers. More... | |
| void | ibusProcess (void) |
| Waits for the parser to not be busy. More... | |
Variables | |
| uint8_t | ibusPayload [PAYLOAD_SIZE] |
| uint8_t | ibusCRC [CRC_SIZE] |
| uint16_t | ibusChannels [RC_CHANNELS] |
| bool | rcActive |
This file initializes the ibus receiver protocol.
| #define ARRAY_LEN | ( | x | ) | (sizeof(x) / sizeof((x)[0])) |
| #define CRC_SIZE 2 |
| #define IBUS_FRAME_SIZE_MAX 32 |
| #define PAYLOAD_SIZE (IBUS_FRAME_SIZE_MAX - 4U) |
| #define RC_CHANNELS (PAYLOAD_SIZE / 2U) |
| enum ibusStatus_e |
| bool ibusInit | ( | void | ) |
Initializes ibus ring buffer and low level usart registers.
| void ibusProcess | ( | void | ) |
Waits for the parser to not be busy.
|
extern |
|
extern |
|
extern |
|
extern |