Add portable NFC module
This commit is contained in:
26
nfc/vendor/dp1312ea/DP1312EA.h
vendored
Normal file
26
nfc/vendor/dp1312ea/DP1312EA.h
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef DP1312EA_DRIVER_H
|
||||
#define DP1312EA_DRIVER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "nfc.h"
|
||||
#include "reg.h"
|
||||
|
||||
void DP1312EA_SetBitMask(u8 reg, u8 mask);
|
||||
void DP1312EA_ClearBitMask(u8 reg, u8 mask);
|
||||
void DP1312EA_WriteRawRC(u8 address, u8 value);
|
||||
u8 DP1312EA_ReadRawRC(u8 address);
|
||||
|
||||
void Check_Chip(void);
|
||||
void DP1312EA_Reset(void);
|
||||
void DP1312EA_Enable(void);
|
||||
void DP1312EA_Disable(void);
|
||||
s8 DP1312EA_PcdComTransceive(struct TranSciveBuffer *pi);
|
||||
void DP1312EA_WriteFIFO(uint8_t *data, uint8_t len);
|
||||
void DP1312EA_ReadFIFO(uint8_t *buf, uint8_t len);
|
||||
|
||||
void DP1312EA_FieldOn(void);
|
||||
void DP1312EA_FieldOff(void);
|
||||
|
||||
uint32_t nfc_dp1312ea_get_reset_pin(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user