libCEC 8.1.0
C / C++ API — control CEC-capable HDMI devices
Loading...
Searching...
No Matches
cec_datapacket Struct Reference

#include <cectypes.h>

Public Member Functions

cec_datapacketoperator= (const struct cec_datapacket &packet)
 
bool operator== (const struct cec_datapacket &packet) const
 
bool IsEmpty (void) const
 
bool IsFull (void) const
 
uint8_t operator[] (uint8_t pos) const
 Get the byte at the requested position.
 
uint8_t At (uint8_t pos) const
 Get the byte at the requested position.
 
void Shift (uint8_t iShiftBy)
 Shift the contents of this packet.
 
void PushBack (uint8_t add)
 Push a byte to the end of this packet.
 
void Clear (void)
 Clear this packet.
 

Public Attributes

uint8_t data [(16 *4)]
 the actual data
 
uint8_t size
 the size of the data
 

Detailed Description

Definition at line 1009 of file cectypes.h.

Member Function Documentation

◆ operator=()

cec_datapacket & cec_datapacket::operator= ( const struct cec_datapacket packet)
inline

Definition at line 1015 of file cectypes.h.

◆ operator==()

bool cec_datapacket::operator== ( const struct cec_datapacket packet) const
inline

Definition at line 1024 of file cectypes.h.

◆ IsEmpty()

bool cec_datapacket::IsEmpty ( void  ) const
inline
Returns
True when this packet is empty, false otherwise.

Definition at line 1035 of file cectypes.h.

◆ IsFull()

bool cec_datapacket::IsFull ( void  ) const
inline
Returns
True when this packet is false, false otherwise.

Definition at line 1037 of file cectypes.h.

◆ operator[]()

uint8_t cec_datapacket::operator[] ( uint8_t  pos) const
inline

Get the byte at the requested position.

Parameters
posThe position.
Returns
The byte, or 0 when out of bounds.

Definition at line 1044 of file cectypes.h.

◆ At()

uint8_t cec_datapacket::At ( uint8_t  pos) const
inline

Get the byte at the requested position.

Parameters
posThe position.
Returns
The byte, or 0 when out of bounds.

Definition at line 1050 of file cectypes.h.

◆ Shift()

void cec_datapacket::Shift ( uint8_t  iShiftBy)
inline

Shift the contents of this packet.

Parameters
iShiftByThe number of positions to shift.

Definition at line 1056 of file cectypes.h.

◆ PushBack()

void cec_datapacket::PushBack ( uint8_t  add)
inline

Push a byte to the end of this packet.

Parameters
addThe byte to add.

Definition at line 1074 of file cectypes.h.

◆ Clear()

void cec_datapacket::Clear ( void  )
inline

Clear this packet.

Definition at line 1083 of file cectypes.h.

Member Data Documentation

◆ data

uint8_t cec_datapacket::data[(16 *4)]

the actual data

Definition at line 1011 of file cectypes.h.

◆ size

uint8_t cec_datapacket::size

the size of the data

Definition at line 1012 of file cectypes.h.


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