ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
Application message structure used for communication. More...
#include <ruuvi_interface_communication.h>
Public Member Functions | |
_Static_assert (RI_COMM_MESSAGE_MAX_LENGTH<=UINT8_MAX, "Data length must fit in uint8_t") | |
Data Fields | |
uint8_t | data [RI_COMM_MESSAGE_MAX_LENGTH] |
Data payload. More... | |
uint8_t | data_length |
Length of data. More... | |
uint8_t | repeat_count |
Number of times to repeat the message,. More... | |
Application message structure used for communication.
This structure is used for both UART and BLE messages.
ruuvi.endpoints.c
library, function re_ca_uart_encode
for details.The structure includes a static assertion to ensure the data length fits within a uint8_t type.
Definition at line 79 of file ruuvi_interface_communication.h.
_Static_assert | ( | RI_COMM_MESSAGE_MAX_LENGTH<= | UINT8_MAX, |
"Data length must fit in uint8_t" | |||
) |
uint8_t data[RI_COMM_MESSAGE_MAX_LENGTH] |
Data payload.
Definition at line 83 of file ruuvi_interface_communication.h.
uint8_t data_length |
Length of data.
Definition at line 84 of file ruuvi_interface_communication.h.
uint8_t repeat_count |
Number of times to repeat the message,.
Definition at line 85 of file ruuvi_interface_communication.h.