Class APDU

Class Documentation

class APDU

This class represents an Application Protocol Data Unit.

It is part of a CemiFrame.

Public Functions

ApduType type()

Get the type of the APDU.

void type(ApduType atype)

Set the type of the APDU.

uint8_t *data()

Get a pointer to the data.

CemiFrame &frame()

Get the CemiFrame this APDU is part of.

uint8_t length() const

Get the length of the APDU.

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

void printPDU()

Print the contents of the APDU to console.

Protected Functions

APDU(uint8_t *data, CemiFrame &frame)

The constructor.

Parameters
  • data – The data of the APDU. Encoding depends on the ApduType. The class doesn’t take possession of this pointer.

  • frame – The CemiFrame this APDU is part of.