#include <comms.h>
|
static std::string | checksum (const std::string &s) |
|
static std::string | message (uint8_t address, std::string data) |
|
Definition at line 56 of file comms.h.
std::string um6::Comms::checksum |
( |
const std::string & |
s | ) |
|
|
static |
std::string um6::Comms::message |
( |
uint8_t |
address, |
|
|
std::string |
data |
|
) |
| |
|
static |
int16_t um6::Comms::receive |
( |
Registers * |
r = NULL | ) |
|
Returns -1 if the serial port timed out before receiving a packet successfully, or if there was a bad checksum or any other error. Otherwise, returns the 8-bit register number of the successfully returned packet.
Definition at line 54 of file comms.cpp.
void um6::Comms::send |
( |
const Accessor_ & |
a | ) |
const |
bool um6::Comms::sendWaitAck |
( |
const Accessor_ & |
a | ) |
|
bool um6::Comms::first_spin_ |
|
private |
const uint8_t um6::Comms::PACKET_BATCH_LENGTH_MASK = 0x0F |
|
static |
const uint8_t um6::Comms::PACKET_BATCH_LENGTH_OFFSET = 2 |
|
static |
const uint8_t um6::Comms::PACKET_HAS_DATA = 1 << 7 |
|
static |
const uint8_t um6::Comms::PACKET_IS_BATCH = 1 << 6 |
|
static |
The documentation for this class was generated from the following files: