JM9 UART packet unpacker. More...
#include <Jason.h>
Public Member Functions | |
| JM9_unpacker (HardwareSerial &init_uart, const uint8_t init_start_byte) | |
| Creates an unpacker. | |
Public Member Functions inherited from Serial_unpacker | |
| Serial_unpacker (HardwareSerial &init_uart, const uint8_t init_start_byte) | |
| Creates an unpacker. | |
| ~Serial_unpacker () | |
| Destroys this unpacker. | |
| bool | update () |
| Checks if a new packet is received. | |
| const uint8_t * | get_packet_ptr () |
| Gets the pointer to the received data. | |
| uint8_t | get_packet_len () |
| Gets the length of the received data. | |
| HardwareSerial & | get_uart () |
| Gets the UART object to read packets from. | |
JM9 UART packet unpacker.
| JM9_unpacker::JM9_unpacker | ( | HardwareSerial & | init_uart, |
| const uint8_t | init_start_byte ) |
Creates an unpacker.
| init_uart | the UART object to read packets from |
| init_start_byte | the start byte of each packet |