diff options
author | Filipe Rodrigues <filipepazrodrigues@gmail.com> | 2018-06-17 15:50:25 -0700 |
---|---|---|
committer | Filipe Rodrigues <filipepazrodrigues@gmail.com> | 2018-06-17 15:50:25 -0700 |
commit | be13902026cdfea208a3d3016657c259361a0aaf (patch) | |
tree | caee7cb56bdb7f46c785164827add734faf2cb55 /Demos/Device/LowLevel/CCID/Lib | |
parent | fc371d0d0e3a60b06dec862e37612375860c41d5 (diff) | |
download | lufa-be13902026cdfea208a3d3016657c259361a0aaf.tar.gz lufa-be13902026cdfea208a3d3016657c259361a0aaf.tar.bz2 lufa-be13902026cdfea208a3d3016657c259361a0aaf.zip |
Review fixes
- Added documentation
- Removed incomplete XfrBlock message
- Renamed Attr to Atr
Diffstat (limited to 'Demos/Device/LowLevel/CCID/Lib')
-rw-r--r-- | Demos/Device/LowLevel/CCID/Lib/Iso7816.c | 10 | ||||
-rw-r--r-- | Demos/Device/LowLevel/CCID/Lib/Iso7816.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/LowLevel/CCID/Lib/Iso7816.c b/Demos/Device/LowLevel/CCID/Lib/Iso7816.c index eaa96e544..0c2e5e8b0 100644 --- a/Demos/Device/LowLevel/CCID/Lib/Iso7816.c +++ b/Demos/Device/LowLevel/CCID/Lib/Iso7816.c @@ -31,17 +31,17 @@ #include "Iso7816.h" -void Iso7816_CreateSimpleAttr(uint8_t* attr, uint8_t* attrLength) +void Iso7816_CreateSimpleAtr(uint8_t* atr, uint8_t* atrLength) { - attr[0] = 0x3B; // TS: direct convention + atr[0] = 0x3B; // TS: direct convention uint8_t interfaceBytesPresence = 0; uint8_t historycalBytes[14] = "Lufa CCID Demo"; // Must be equal or less than 15 uint8_t historicalBytesLength = sizeof(historycalBytes); - attr[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO - memcpy(attr + 2, historycalBytes, historicalBytesLength); + atr[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO + memcpy(atr + 2, historycalBytes, historicalBytesLength); - *attrLength = historicalBytesLength + 2; + *atrLength = historicalBytesLength + 2; } diff --git a/Demos/Device/LowLevel/CCID/Lib/Iso7816.h b/Demos/Device/LowLevel/CCID/Lib/Iso7816.h index d07485823..aa5f4ba83 100644 --- a/Demos/Device/LowLevel/CCID/Lib/Iso7816.h +++ b/Demos/Device/LowLevel/CCID/Lib/Iso7816.h @@ -40,6 +40,6 @@ #include <stdlib.h> /* Function Prototypes: */ - void Iso7816_CreateSimpleAttr(uint8_t* attr, uint8_t* attrLength); + void Iso7816_CreateSimpleAtr(uint8_t* atr, uint8_t* atrLength); #endif |