Kilolib
Kilobot Library
message_t Struct Reference

Message structure. More...

#include <kilolib.h>

Data Fields

uint8_t data [9]
 message payload.
 
uint8_t type
 message type.
 
uint16_t crc
 message crc.
 

Detailed Description

Message structure.

A message structure is 12 bytes in length and is composed of three parts: the payload (9 bytes), the message type (1 byte), and a CRC (2 bytes).

Note
When preparing a message for transmission, at a minimum you must specify the type (use a value between 0 and 127 for user messages) and the CRC (use the message_crc() function for this purpose).
See also
message_crc, kilo_message_rx, kilo_message_tx, kilo_message_tx_success

The documentation for this struct was generated from the following file: