M5Unit-NFC 0.1.0 git rev:93745b5
Loading...
Searching...
No Matches
isoDEP.hpp File Reference

ISO Data Exchange Protocol. More...

#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  m5::nfc::isodep::config_t
 ISO-DEP configuration. More...
 
struct  m5::nfc::isodep::policy_t
 Per-exchange timeout/retry override for transceiveINF/transceiveAPDU. More...
 
struct  m5::nfc::isodep::RxInfo
 RX information. More...
 
class  m5::nfc::isodep::IsoDEP
 ISO Data Exchange Protocol. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 
namespace  isodep
 For ISO-DEP.
 

Functions

uint32_t m5::nfc::isodep::fwi_to_ms (const uint8_t fwi, const float fc)
 Calculate waiting time(ms) by fwi and fc.
 
uint16_t m5::nfc::isodep::fsci_to_fsc (const uint8_t fsci)
 Convert FSCI to FSC (ISO/IEC 14443-4)
 

Variables

constexpr uint16_t m5::nfc::isodep::MAX_FRAME_SIZE {256}
 

Detailed Description

ISO Data Exchange Protocol.

Function Documentation

◆ fsci_to_fsc()

uint16_t m5::nfc::isodep::fsci_to_fsc ( const uint8_t fsci)
inline

Convert FSCI to FSC (ISO/IEC 14443-4)

Parameters
fsciFrame Size for proximity Card Integer
Returns
Frame Size for proximity Card in bytes, or 0 if invalid

◆ fwi_to_ms()

uint32_t m5::nfc::isodep::fwi_to_ms ( const uint8_t fwi,
const float fc )

Calculate waiting time(ms) by fwi and fc.

Parameters
fwiFrame Waiting Integer
fcCarrier frequency in MHz
Returns
Frame waiting time in milliseconds