13 #include <pico/binary_info.h>
14 #include <pico/stdlib.h>
15 #include <pico/stdio_usb.h>
16 #include <pico/mutex.h>
17 #include <comms/common.h>
18 #include <comms/protocol.h>
19 #include <comms/topic_data.h>
58 int read_message(uint8_t* header_data, uint8_t* msg_data_serialized, uint16_t message_len,
char* topic_msg_data_checksum);
69 int validate_message(uint8_t* header_data, uint8_t* msg_data_serialized, uint16_t message_len,
char topic_msg_data_checksum);
int read_message(uint8_t *header_data, uint8_t *msg_data_serialized, uint16_t message_len, char *topic_msg_data_checksum)
Read a message from the communication interface.
Definition: listener.c:26
int validate_header(uint8_t *header_data)
Validate the integrity of the header data.
Definition: listener.c:17
void comms_listener_loop(void)
Main loop for the communication listener.
Definition: listener.c:51
int validate_message(uint8_t *header_data, uint8_t *msg_data_serialized, uint16_t message_len, char topic_msg_data_checksum)
Validate the integrity of the message data.
Definition: listener.c:39
int read_header(uint8_t *header_data)
Read the header data from the communication interface.
Definition: listener.c:4