DESERT 4.0.0
ahoitypes.h File Reference

Go to the source code of this file.

Namespaces

namespace  ahoi
 

Enumerations

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

Functions

struct ahoi::__attribute__ ((__packed__)) header_t
 

Variables

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