DESERT 3.5.1
Loading...
Searching...
No Matches
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 

Definition at line 39 of file ahoitypes.h.

Function Documentation

◆ __attribute__()

struct ahoi::__attribute__ ( (__packed__)  )

Definition at line 68 of file ahoitypes.h.

Variable Documentation

◆ ACK_NONE

constexpr uint ahoi::ACK_NONE = 0x00
constexpr

Definition at line 104 of file ahoitypes.h.

◆ ACK_PLAIN

constexpr uint ahoi::ACK_PLAIN = 0x01
constexpr

Definition at line 105 of file ahoitypes.h.

◆ ACK_RANGING

constexpr uint ahoi::ACK_RANGING = 0x02
constexpr

Definition at line 106 of file ahoitypes.h.

◆ AHOI_ADDR_BCAST

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

Definition at line 65 of file ahoitypes.h.

◆ AHOI_SERIAL_ACK

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

Definition at line 64 of file ahoitypes.h.

◆ AHOI_TYPE_ACK

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

Definition at line 63 of file ahoitypes.h.

◆ 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)}

Definition at line 47 of file uwinterpreterahoi.cpp.

◆ FOOTER_LEN

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

Definition at line 98 of file ahoitypes.h.

◆ HEADER_LEN

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

Definition at line 97 of file ahoitypes.h.

◆ MAX_PKT_LEN

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

Definition at line 96 of file ahoitypes.h.

◆ MM_HEADER_CRC_LEN

constexpr uint ahoi::MM_HEADER_CRC_LEN = 1
constexpr

Definition at line 101 of file ahoitypes.h.

◆ MM_PAYLOAD_CRC_LEN

constexpr uint ahoi::MM_PAYLOAD_CRC_LEN = 2
constexpr

Definition at line 100 of file ahoitypes.h.

◆ PAYLOAD_MAXLEN

constexpr uint ahoi::PAYLOAD_MAXLEN = 128
constexpr

Definition at line 68 of file ahoitypes.h.