knx
ETS configurable knx-stack
APDU Class Reference

This class represents an Application Protocol Data Unit. More...

#include <apdu.h>

Public Member Functions

ApduType type ()
 Get the type of the APDU. More...
 
void type (ApduType atype)
 Set the type of the APDU. More...
 
uint8_t * data ()
 Get a pointer to the data. More...
 
CemiFrameframe ()
 Get the CemiFrame this APDU is part of. More...
 
uint8_t length () const
 Get the length of the APDU. More...
 
void printPDU ()
 Print the contents of the APDU to console. More...
 

Protected Member Functions

 APDU (uint8_t *data, CemiFrame &frame)
 The constructor. More...
 

Friends

class CemiFrame
 

Detailed Description

This class represents an Application Protocol Data Unit.

It is part of a CemiFrame.

Definition at line 11 of file apdu.h.

Constructor & Destructor Documentation

◆ APDU()

APDU::APDU ( uint8_t *  data,
CemiFrame frame 
)
protected

The constructor.

Parameters
dataThe data of the APDU. Encoding depends on the ApduType. The class doesn't take possession of this pointer.
frameThe CemiFrame this APDU is part of.

Definition at line 5 of file apdu.cpp.

Member Function Documentation

◆ data()

uint8_t * APDU::data ( )

Get a pointer to the data.

Definition at line 28 of file apdu.cpp.

Here is the caller graph for this function:

◆ frame()

CemiFrame & APDU::frame ( )

Get the CemiFrame this APDU is part of.

Definition at line 33 of file apdu.cpp.

Here is the caller graph for this function:

◆ length()

uint8_t APDU::length ( ) const

Get the length of the APDU.

(This is actually the octet count of the NPDU.)

Definition at line 38 of file apdu.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printPDU()

void APDU::printPDU ( )

Print the contents of the APDU to console.

Definition at line 43 of file apdu.cpp.

Here is the call graph for this function:

◆ type() [1/2]

ApduType APDU::type ( )

Get the type of the APDU.

Definition at line 9 of file apdu.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ type() [2/2]

void APDU::type ( ApduType  atype)

Set the type of the APDU.

Definition at line 22 of file apdu.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ CemiFrame

friend class CemiFrame
friend

Definition at line 13 of file apdu.h.


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