0.2.0
Loading...
Searching...
No Matches
NAV::vendor::kvh::KvhUartSensor Class Reference

Class to read out KVH Sensors. More...

Public Member Functions

std::unique_ptr< uart::protocol::Packet > findPacket (uint8_t dataByte)
 Collects data bytes and searches for packages inside of them.
 
 KvhUartSensor ()=default
 Default constructor.
 
 KvhUartSensor (const KvhUartSensor &)=delete
 Copy constructor.
 
 KvhUartSensor (KvhUartSensor &&)=delete
 Move constructor.
 
 KvhUartSensor (std::string name)
 Constructor.
 
uart::sensors::UartSensor * operator-> ()
 Arrow operator overload.
 
KvhUartSensoroperator= (const KvhUartSensor &)=delete
 Copy assignment operator.
 
KvhUartSensoroperator= (KvhUartSensor &&)=delete
 Move assignment operator.
 
 ~KvhUartSensor ()=default
 Destructor.
 

Static Public Attributes

static constexpr uart::Endianness ENDIANNESS
 Endianess of the sensor.
 
static constexpr uint32_t HEADER_FMT_A
 Header Format A.
 
static constexpr uint32_t HEADER_FMT_B
 Header Format B.
 
static constexpr uint32_t HEADER_FMT_C
 Header Format C.
 
static constexpr uint32_t HEADER_FMT_XBIT
 Header Format X Bit.
 
static constexpr uint32_t HEADER_FMT_XBIT2
 Header Format X Bit 2.
 

Detailed Description

Class to read out KVH Sensors.

Constructor & Destructor Documentation

◆ KvhUartSensor()

NAV::vendor::kvh::KvhUartSensor::KvhUartSensor ( std::string name)
explicit

Constructor.

Parameters
[in]nameName of the Parent Node

Member Function Documentation

◆ findPacket()

std::unique_ptr< uart::protocol::Packet > NAV::vendor::kvh::KvhUartSensor::findPacket ( uint8_t dataByte)

Collects data bytes and searches for packages inside of them.

Parameters
[in]dataByteThe next data byte
Returns
nullptr if no packet found yet, otherwise a pointer to the packet

The documentation for this class was generated from the following file: