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>
Data Fields | |
uint8_t | data [RI_COMM_MESSAGE_MAX_LENGTH] |
Data payload. | |
uint8_t | data_length |
Length of data. | |
uint8_t | repeat_count |
Number of times to repeat the message,. | |
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.
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.