DESERT 4.0.0
ahoi Namespace Reference

Enumerations

enum class  Command {
  send , confirm , id , batvol ,
  reset , agc , rxgain , txgain ,
  range_delay , distance , packetstat , packetstatreset ,
  syncstat , syncstatreset , sfdstat , sfdstatreset ,
  allstat , allstatreset
}
 

Functions

struct __attribute__ ((__packed__)) header_t
 

Variables

std::map< ahoi::Command, uint8_t > commands_id
 
constexpr uint AHOI_TYPE_ACK = ((1 << (8 * sizeof(uint8_t) - 1)) - 1)
 
constexpr uint AHOI_SERIAL_ACK = ((1 << (8 * sizeof(uint8_t))) - 1)
 
constexpr uint AHOI_ADDR_BCAST = ((1 << (8 * sizeof(uint8_t))) - 1)
 
constexpr uint PAYLOAD_MAXLEN = 128
 
constexpr uint MAX_PKT_LEN = (sizeof(packet_t))
 
constexpr uint HEADER_LEN = (sizeof(header_t))
 
constexpr uint FOOTER_LEN = (sizeof(footer_t))
 
constexpr uint MM_PAYLOAD_CRC_LEN = 2
 
constexpr uint MM_HEADER_CRC_LEN = 1
 
constexpr uint ACK_NONE = 0x00
 
constexpr uint ACK_PLAIN = 0x01
 
constexpr uint ACK_RANGING = 0x02
 

Enumeration Type Documentation

◆ Command

enum class ahoi::Command
strong
Enumerator
send 
confirm 
id 
batvol 
reset 
agc 
rxgain 
txgain 
range_delay 
distance 
packetstat 
packetstatreset 
syncstat 
syncstatreset 
sfdstat 
sfdstatreset 
allstat 
allstatreset 

Function Documentation

◆ __attribute__()

struct ahoi::__attribute__ ( (__packed__)  )

Variable Documentation

◆ ACK_NONE

constexpr uint ahoi::ACK_NONE = 0x00
constexpr

◆ ACK_PLAIN

constexpr uint ahoi::ACK_PLAIN = 0x01
constexpr

◆ ACK_RANGING

constexpr uint ahoi::ACK_RANGING = 0x02
constexpr

◆ AHOI_ADDR_BCAST

constexpr uint ahoi::AHOI_ADDR_BCAST = ((1 << (8 * sizeof(uint8_t))) - 1)
constexpr

◆ AHOI_SERIAL_ACK

constexpr uint ahoi::AHOI_SERIAL_ACK = ((1 << (8 * sizeof(uint8_t))) - 1)
constexpr

◆ AHOI_TYPE_ACK

constexpr uint ahoi::AHOI_TYPE_ACK = ((1 << (8 * sizeof(uint8_t) - 1)) - 1)
constexpr

◆ commands_id

std::map< ahoi::Command, uint8_t > ahoi::commands_id
extern
Initial value:
{
std::make_pair(ahoi::Command::send, 0x00),
std::make_pair(ahoi::Command::id, 0x84),
std::make_pair(ahoi::Command::batvol, 0x85),
std::make_pair(ahoi::Command::reset, 0x87),
std::make_pair(ahoi::Command::agc, 0x98),
std::make_pair(ahoi::Command::rxgain, 0x99),
std::make_pair(ahoi::Command::txgain, 0x9A),
std::make_pair(ahoi::Command::range_delay, 0xA8),
std::make_pair(ahoi::Command::distance, 0xA9),
std::make_pair(ahoi::Command::packetstat, 0xC0),
std::make_pair(ahoi::Command::packetstatreset, 0xC1),
std::make_pair(ahoi::Command::syncstat, 0xC2),
std::make_pair(ahoi::Command::syncstatreset, 0xC3),
std::make_pair(ahoi::Command::sfdstat, 0xC4),
std::make_pair(ahoi::Command::sfdstatreset, 0xC5),
std::make_pair(ahoi::Command::allstat, 0xC6),
std::make_pair(ahoi::Command::allstatreset, 0xC7),
std::make_pair(ahoi::Command::confirm, 0xFF)}

Referenced by UwInterpreterAhoi::buildAgc(), UwInterpreterAhoi::buildAllStat(), UwInterpreterAhoi::buildAllStatReset(), UwInterpreterAhoi::buildBatVol(), UwInterpreterAhoi::buildDistance(), UwInterpreterAhoi::buildID(), UwInterpreterAhoi::buildPacketStat(), UwInterpreterAhoi::buildPacketStatReset(), UwInterpreterAhoi::buildRangeDelay(), UwInterpreterAhoi::buildReset(), UwInterpreterAhoi::buildRxGain(), UwInterpreterAhoi::buildSfdStat(), UwInterpreterAhoi::buildSfdStatReset(), UwInterpreterAhoi::buildSyncStat(), UwInterpreterAhoi::buildSyncStatReset(), UwInterpreterAhoi::buildTxGain(), UwAhoiModem::fillAhoiPkt(), and UwAhoiModem::updateStatus().

◆ FOOTER_LEN

constexpr uint ahoi::FOOTER_LEN = (sizeof(footer_t))
constexpr

◆ HEADER_LEN

constexpr uint ahoi::HEADER_LEN = (sizeof(header_t))
constexpr

◆ MAX_PKT_LEN

constexpr uint ahoi::MAX_PKT_LEN = (sizeof(packet_t))
constexpr

◆ MM_HEADER_CRC_LEN

constexpr uint ahoi::MM_HEADER_CRC_LEN = 1
constexpr

◆ MM_PAYLOAD_CRC_LEN

constexpr uint ahoi::MM_PAYLOAD_CRC_LEN = 2
constexpr

◆ PAYLOAD_MAXLEN

constexpr uint ahoi::PAYLOAD_MAXLEN = 128
constexpr