WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
rfid.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  WISP_dataStructInterface_t
 

Macros

#define MODE_STD   (0) /* tag only responds up to ACKs (even ignores ReqRNs) */
 
#define MODE_READ   (BIT0) /* tag responds to read commands */
 
#define MODE_WRITE   (BIT1) /* tag responds to write commands */
 
#define MODE_USES_SEL   (BIT2) /* tags only use select when they want to play nice (they don't have to) */
 
#define CMD_ID_ACK   (BIT0)
 
#define CMD_ID_READ   (BIT1)
 
#define CMD_ID_WRITE   (BIT2)
 
#define CMD_ID_BLOCKWRITE   (BIT3)
 

Functions

void WISP_doRFID (void)
 
void WISP_registerCallback_ACK (void(*fnPtr)(void))
 
void WISP_registerCallback_READ (void(*fnPtr)(void))
 
void WISP_registerCallback_WRITE (void(*fnPtr)(void))
 
void WISP_registerCallback_BLOCKWRITE (void(*fnPtr)(void))
 
void WISP_setMode (uint8_t newMode)
 
void WISP_setAbortConditions (uint8_t newAbortConditions)
 
void RX_ISR (void)
 
void Timer0A0_ISR (void)
 
void Timer0A1_ISR (void)
 

Detailed Description

Defines the public interface for the RFID module

Author
Aaron Parks

Macro Definition Documentation

◆ CMD_ID_ACK

#define CMD_ID_ACK   (BIT0)

◆ CMD_ID_BLOCKWRITE

#define CMD_ID_BLOCKWRITE   (BIT3)

◆ CMD_ID_READ

#define CMD_ID_READ   (BIT1)

◆ CMD_ID_WRITE

#define CMD_ID_WRITE   (BIT2)

◆ MODE_READ

#define MODE_READ   (BIT0) /* tag responds to read commands */

◆ MODE_STD

#define MODE_STD   (0) /* tag only responds up to ACKs (even ignores ReqRNs) */

◆ MODE_USES_SEL

#define MODE_USES_SEL   (BIT2) /* tags only use select when they want to play nice (they don't have to) */

◆ MODE_WRITE

#define MODE_WRITE   (BIT1) /* tag responds to write commands */

Function Documentation

◆ RX_ISR()

void RX_ISR ( void  )

◆ Timer0A0_ISR()

void Timer0A0_ISR ( void  )

◆ Timer0A1_ISR()

void Timer0A1_ISR ( void  )

◆ WISP_doRFID()

void WISP_doRFID ( void  )

◆ WISP_registerCallback_ACK()

void WISP_registerCallback_ACK ( void(*)(void)  fnPtr)

Registers a callback for ACK event

◆ WISP_registerCallback_BLOCKWRITE()

void WISP_registerCallback_BLOCKWRITE ( void(*)(void)  fnPtr)

Registers a callback for a BLOCKWRITE event

◆ WISP_registerCallback_READ()

void WISP_registerCallback_READ ( void(*)(void)  fnPtr)

Registers a callback for READ event

◆ WISP_registerCallback_WRITE()

void WISP_registerCallback_WRITE ( void(*)(void)  fnPtr)

Registers a callback for a WRITE event

◆ WISP_setAbortConditions()

void WISP_setAbortConditions ( uint8_t  abortOn)

Sets abort conditions for the RFID state machine. This dictates when WISP comm code will abort and return control to client code.

◆ WISP_setMode()

void WISP_setMode ( uint8_t  mode)

Sets mode parameters for the RFID state machine