unleashed-firmware/lib/nfc/protocols/iso14443_4b/iso14443_4b_i.c
gornekich d92b0a82cc
NFC refactoring (#3050)
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring.

Starring:

- @gornekich - NFC refactoring project lead, architect, senior developer
- @gsurkov - architect, senior developer
- @RebornedBrain - senior developer

Supporting roles:

- @skotopes, @DrZlo13, @hedger - general architecture advisors, code review
- @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance

Special thanks:

@bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
2023-10-24 12:08:09 +09:00

19 lines
556 B
C

#include "iso14443_4b_i.h"
Iso14443_4bError iso14443_4b_process_error(Iso14443_3bError error) {
switch(error) {
case Iso14443_3bErrorNone:
return Iso14443_4bErrorNone;
case Iso14443_3bErrorNotPresent:
return Iso14443_4bErrorNotPresent;
case Iso14443_3bErrorColResFailed:
case Iso14443_3bErrorCommunication:
case Iso14443_3bErrorWrongCrc:
return Iso14443_4bErrorProtocol;
case Iso14443_3bErrorTimeout:
return Iso14443_4bErrorTimeout;
default:
return Iso14443_4bErrorProtocol;
}
}