Difference between revisions of "Component: RFID (EB052, RWD MICODE) (Wireless)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
Line 19: Line 19:
  
 
==Examples==
 
==Examples==
''<span style="color:red;">No additional examples</span>''
 
  
 +
===Reading the status===
 +
 +
The status of the RFID module is read using the "GetRFIDStatus" macro which returns a byte which is then displayed using the PORTB pins.
 +
 +
{{Fcfile|RFID_ex1.fcfx|RFID Status}}
 +
 +
 +
Status byte breakdown for Mifare.
 +
 +
[[File:RFID_MF.jpg]]
 +
 +
 +
Status byte breakdown for ICode.
 +
 +
[[File:RFID_IC.jpg]]
 +
 +
 +
Status byte breakdown for HiTag.
 +
 +
[[File:RFID_HI.jpg]]
 +
 +
 +
Status byte breakdown for EM Marin.
 +
 +
[[File:RFID_EM.jpg]]
 +
 +
 +
===Reading and Writing Data===
 +
 +
Example which talks to a ICode type card and allows the data to be read and written via a keypad.
 +
 +
{{Fcfile|RFID_ex4.fcfx|RFID Read/Write}}
  
 
==Downloadable macro reference==
 
==Downloadable macro reference==

Revision as of 10:33, 6 March 2014

Author Matrix Ltd.
Version 1.2
Category Wireless


Image RFID (EB052, RWD_MICODE) component

Low level routines for controlling a RF Solutions RFID interface Allows communications between Mifare, ICode and HiTag type RFID tags. Also available in the form of the EB052 RFID E-block.

Examples

Reading the status

The status of the RFID module is read using the "GetRFIDStatus" macro which returns a byte which is then displayed using the PORTB pins.

FC6 Icon.png RFID Status


Status byte breakdown for Mifare.

RFID MF.jpg


Status byte breakdown for ICode.

RFID IC.jpg


Status byte breakdown for HiTag.

RFID HI.jpg


Status byte breakdown for EM Marin.

RFID EM.jpg


Reading and Writing Data

Example which talks to a ICode type card and allows the data to be read and written via a keypad.

FC6 Icon.png RFID Read/Write

Downloadable macro reference

GetRFIDTypeID

No additional information


Parameters

This macro has no parameters


Return value

BYTE


WriteRFIDBlock

No additional information


Parameters

BYTE Address
BYTE Key_Type


Return value

BYTE


WriteRFIDModule

No additional information


Parameters

BYTE Address
BYTE Data


Return value

BYTE


DecrementRFIDValue

No additional information


Parameters

BYTE Src
BYTE Dst
BYTE Key_Type


Return value

BYTE


FormatRFIDValue

No additional information


Parameters

This macro has no parameters


Return value

This call does not return a value


IncrementRFIDValue

No additional information


Parameters

BYTE Src
BYTE Dst
BYTE Key_Type


Return value

BYTE


StoreRFIDKey

No additional information


Parameters

BYTE Key
BYTE D0
BYTE D1
BYTE D2
BYTE D3
BYTE D4
BYTE D5


Return value

BYTE


WriteRFIDBuffer

No additional information


Parameters

BYTE Address
BYTE Data


Return value

This call does not return a value


GetRFIDStatus

No additional information


Parameters

This macro has no parameters


Return value

UINT


ReadRFIDBuffer

No additional information


Parameters

BYTE Address


Return value

BYTE


TransferRFIDValue

No additional information


Parameters

BYTE Src
BYTE Dst
BYTE Key_Type


Return value

BYTE


GetRFIDUID

No additional information


Parameters

This macro has no parameters


Return value

BYTE


ReadRFIDUID

No additional information


Parameters

BYTE Address


Return value

BYTE


ReadRFIDBlock

No additional information


Parameters

BYTE Address
BYTE Key_Type


Return value

BYTE


Initialise

No additional information


Parameters

This macro has no parameters


Return value

BYTE


Simulation macro reference

This component does not contain any simulation macros


Property reference

CHANNEL

This property is of type Fixed list of ints and can be referenced with the variable name CHANNEL.

No additional information


Card_Type

This property is of type Fixed list of ints and can be referenced with the variable name Card_Type.

No additional information


Label

This property is of type Line of text and can be referenced with the variable name label.

No additional information


CTS

This property is of type Single digital pin and can be referenced with the variable name CTS.

No additional information


TX

This property is of type Single digital pin and can be referenced with the variable name TX.

No additional information


RX

This property is of type Single digital pin and can be referenced with the variable name RX.

No additional information