Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
casimir::rf::RfPacketView Class Reference

#include <rf_packets.h>

Collaboration diagram for casimir::rf::RfPacketView:
Collaboration graph
[legend]

Public Member Functions

uint16_t GetSender () const
 
uint16_t GetReceiver () const
 
Technology GetTechnology () const
 
Protocol GetProtocol () const
 
RfPacketType GetPacketType () const
 
BitRate GetBitrate () const
 
uint8_t GetPowerLevel () const
 
std::vector< uint8_t > GetPayload () const
 
std::string ToString () const
 
bool IsValid () const
 
pdl::packet::slice bytes () const
 

Static Public Member Functions

static RfPacketView Create (pdl::packet::slice const &parent)
 

Protected Member Functions

 RfPacketView (pdl::packet::slice const &parent)
 
bool Parse (pdl::packet::slice const &parent)
 

Protected Attributes

bool valid_ {false}
 
pdl::packet::slice bytes_
 
uint16_t sender_ {0}
 
uint16_t receiver_ {0}
 
Technology technology_ {Technology::NFC_A}
 
Protocol protocol_ {Protocol::UNDETERMINED}
 
RfPacketType packet_type_ {RfPacketType::DATA}
 
BitRate bitrate_ {BitRate::BIT_RATE_106_KBIT_S}
 
uint8_t power_level_ {0}
 
pdl::packet::slice payload_
 

Friends

class PollCommandView
 
class FieldInfoView
 
class NfcAPollResponseView
 
class T4ATSelectCommandView
 
class T4ATSelectResponseView
 
class NfcDepSelectCommandView
 
class NfcDepSelectResponseView
 
class SelectCommandView
 
class DeactivateNotificationView
 
class DataView
 

Constructor & Destructor Documentation

◆ RfPacketView()

casimir::rf::RfPacketView::RfPacketView ( pdl::packet::slice const &  parent)
inlineexplicitprotected

Member Function Documentation

◆ bytes()

pdl::packet::slice casimir::rf::RfPacketView::bytes ( ) const
inline

◆ Create()

static RfPacketView casimir::rf::RfPacketView::Create ( pdl::packet::slice const &  parent)
inlinestatic

◆ GetBitrate()

BitRate casimir::rf::RfPacketView::GetBitrate ( ) const
inline

◆ GetPacketType()

RfPacketType casimir::rf::RfPacketView::GetPacketType ( ) const
inline

◆ GetPayload()

std::vector< uint8_t > casimir::rf::RfPacketView::GetPayload ( ) const
inline

◆ GetPowerLevel()

uint8_t casimir::rf::RfPacketView::GetPowerLevel ( ) const
inline

◆ GetProtocol()

Protocol casimir::rf::RfPacketView::GetProtocol ( ) const
inline

◆ GetReceiver()

uint16_t casimir::rf::RfPacketView::GetReceiver ( ) const
inline

◆ GetSender()

uint16_t casimir::rf::RfPacketView::GetSender ( ) const
inline

◆ GetTechnology()

Technology casimir::rf::RfPacketView::GetTechnology ( ) const
inline

◆ IsValid()

bool casimir::rf::RfPacketView::IsValid ( ) const
inline

◆ Parse()

bool casimir::rf::RfPacketView::Parse ( pdl::packet::slice const &  parent)
inlineprotected

◆ ToString()

std::string casimir::rf::RfPacketView::ToString ( ) const
inline

Friends And Related Function Documentation

◆ DataView

friend class DataView
friend

◆ DeactivateNotificationView

friend class DeactivateNotificationView
friend

◆ FieldInfoView

friend class FieldInfoView
friend

◆ NfcAPollResponseView

friend class NfcAPollResponseView
friend

◆ NfcDepSelectCommandView

friend class NfcDepSelectCommandView
friend

◆ NfcDepSelectResponseView

friend class NfcDepSelectResponseView
friend

◆ PollCommandView

friend class PollCommandView
friend

◆ SelectCommandView

friend class SelectCommandView
friend

◆ T4ATSelectCommandView

friend class T4ATSelectCommandView
friend

◆ T4ATSelectResponseView

friend class T4ATSelectResponseView
friend

Member Data Documentation

◆ bitrate_

BitRate casimir::rf::RfPacketView::bitrate_ {BitRate::BIT_RATE_106_KBIT_S}
protected

◆ bytes_

pdl::packet::slice casimir::rf::RfPacketView::bytes_
protected

◆ packet_type_

RfPacketType casimir::rf::RfPacketView::packet_type_ {RfPacketType::DATA}
protected

◆ payload_

pdl::packet::slice casimir::rf::RfPacketView::payload_
protected

◆ power_level_

uint8_t casimir::rf::RfPacketView::power_level_ {0}
protected

◆ protocol_

Protocol casimir::rf::RfPacketView::protocol_ {Protocol::UNDETERMINED}
protected

◆ receiver_

uint16_t casimir::rf::RfPacketView::receiver_ {0}
protected

◆ sender_

uint16_t casimir::rf::RfPacketView::sender_ {0}
protected

◆ technology_

Technology casimir::rf::RfPacketView::technology_ {Technology::NFC_A}
protected

◆ valid_

bool casimir::rf::RfPacketView::valid_ {false}
protected

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