#include <stdint.h>
#include <mikai-error.h>
#include <nfc/nfc.h>
Go to the source code of this file.
◆ MAX_DEVICE_COUNT
#define MAX_DEVICE_COUNT 8 |
◆ MAX_TARGET_COUNT
#define MAX_TARGET_COUNT 1 |
◆ NfcReader
Struct that represents a NFC Reader.
◆ SrixBlock
◆ NfcCloseReader()
Close a nfc reader.
- Parameters
-
reader | reader instance where reader is saved |
◆ NfcGetReaderDescription()
Get a description of a specific reader.
- Parameters
-
reader | pointer to a NfcReader instance |
selection | index of reader to get |
- Returns
- pointer to reader description string
◆ NfcGetUid()
Get UID from Reader as raw byte array.
- Parameters
-
reader | pointer to Reader struct |
uid | array where save the UID data |
- Returns
- MikaiError result
◆ NfcInitReader()
Initialize an NFC Reader.
- Parameters
-
reader | pointer to Reader struct |
selection | id of Reader to initialize |
- Returns
- MikaiError result
◆ NfcReadBlock()
Read a specified block from SRIX4K to rx_data array.
- Parameters
-
reader | nfc reader to send command |
block | array to save read block |
blockNum | block to read from SRIX |
- Returns
- MikaiError result
◆ NfcReaderNew()
Allocate a nfc reader and set its default values.
- Returns
- null if there is an error, else an nfc reader pointer
Definition at line 113 of file reader.c.
◆ NfcUpdateReaders()
Update available readers on NfcReader instance.
- Parameters
-
- Returns
- number of readers currently available and saved on instance
◆ NfcWriteBlock()
Write block to SRIX4K.
- Parameters
-
reader | nfc reader to send command |
block | array of data to write to block |
blockNum | block to write to SRIX |
- Returns
- MikaiError result