Aruna
|
transmit ready package. More...
#include <commTypes.h>
Static Public Member Functions | |
static void | transmitpackage_to_binary (transmitpackage_t transp, uint8_t *bin) |
Get binary array of transmitpackage, for sending over a link. More... | |
static bool | binary_to_transmitpackage (uint8_t *bin, transmitpackage_t &transp) |
get tansmitpackage of binary array. More... | |
Public Attributes | |
port_t | from_port |
channel who is sending the data. More... | |
port_t | to_port |
to whom to send it to. More... | |
uint8_t | n |
uint8_t * | data_transmitting |
Data to be transmitted. More... | |
uint8_t * | data_received |
pointer to where incoming data must be stored. More... | |
uint8_t | data_lenght |
size of the data More... | |
uint8_t | size |
total size of package (+ the size of the size variable) More... | |
bool | notify_on_ack = false |
notify the task on ack/no ack More... | |
bool | resend = false |
is the package being resend? More... | |
Static Public Attributes | |
static constexpr uint8_t | HEADER_SIZE = 4 |
transmit ready package.
Definition at line 39 of file commTypes.h.
|
inlinestatic |
get tansmitpackage of binary array.
bin | array that stores the info |
transp | transmitpackage that the data need to go to. |
Definition at line 125 of file commTypes.h.
|
inlinestatic |
Get binary array of transmitpackage, for sending over a link.
bin arrangement: size, n, from_port, to_port, data
transp | package to make a binary from. |
bin | to store the data to. |
Definition at line 95 of file commTypes.h.
uint8_t aruna::comm::transmitpackage_t::data_lenght |
size of the data
Definition at line 70 of file commTypes.h.
uint8_t* aruna::comm::transmitpackage_t::data_received |
pointer to where incoming data must be stored.
Definition at line 65 of file commTypes.h.
uint8_t* aruna::comm::transmitpackage_t::data_transmitting |
Data to be transmitted.
Definition at line 60 of file commTypes.h.
port_t aruna::comm::transmitpackage_t::from_port |
channel who is sending the data.
Definition at line 44 of file commTypes.h.
|
static |
Definition at line 40 of file commTypes.h.
uint8_t aruna::comm::transmitpackage_t::n |
Definition at line 54 of file commTypes.h.
bool aruna::comm::transmitpackage_t::notify_on_ack = false |
notify the task on ack/no ack
Definition at line 81 of file commTypes.h.
bool aruna::comm::transmitpackage_t::resend = false |
is the package being resend?
Definition at line 86 of file commTypes.h.
uint8_t aruna::comm::transmitpackage_t::size |
total size of package (+ the size of the size variable)
Definition at line 75 of file commTypes.h.
port_t aruna::comm::transmitpackage_t::to_port |
to whom to send it to.
Definition at line 49 of file commTypes.h.