Author
|
Matrix TSL
|
Version
|
1.0
|
Category
|
Wireless
|
RFID (Sparkfun Quiic / ID-12LA) component
Provides functions to drive the Sparkfun Quiic RFID reader module (ID-12LA). Allowing access to read 125KHz RFID tags. Suitable for applications such as tracking, logging or access control.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|
ChangeI2CAddress
|
Allows the I2C Device address to be changed which in turn allows more then one RFID reader to sit on the same physical I2C bus. Returns 1 if succesful.
|
- BYTE
|
NewAddress
|
Range: 7 to 120 or 0x07 - 0x78
|
[[File:]] -
|
Return
|
|
RemoveCurrentTag
|
Removes the current Tag ID from the known tag storage.
|
- VOID
|
Return
|
|
StoreCurrentTag
|
Stores the current detected tag as a known tag storage Returns true if the tag has been stored or false if there is no remaining room
|
[[File:]] -
|
Return
|
|
GetTagString
|
Gets the tag ID returned as a string. Must be called after CheckForTag has returned true. String variable should be at least 13 characters long.
|
- STRING
|
Return
|
|
RemoveTagID
|
Removes a specific 6-byte tag ID from the known tag storage
|
- BYTE
|
ID
|
Array of 6 bytes containing tag ID
|
- VOID
|
Return
|
|
GetTimeMS
|
Gets the time in milliseconds since the tag was read by the module. Must be called after CheckForTag has returned true.
|
- ULONG
|
Return
|
|
StoreTagID
|
Stores a specific 6-byte tag ID into the known storage Returns true if the tag has been stored or false if there is no remaining room
|
- BYTE
|
ID
|
Array of 6 bytes containing tag ID
|
[[File:]] -
|
Return
|
|
GetTimeS
|
Gets the time in seconds since the tag was read by the module. Must be called after CheckForTag has returned true.
|
- UINT
|
Return
|
|
CheckForTag
|
Checks to see if a tag has been detected by the module. Returns 1 if tag has been detected. Tag ID and Time since read can be accessed using GetTag and GetTime macros.
|
[[File:]] -
|
Return
|
|
GetTag
|
Gets the tag ID returned as a byte array. Must be called after CheckForTag has returned true. Byte array variable should be at least 6 bytes long.
|
- BYTE
|
Data
|
|
- VOID
|
Return
|
|
IsKnownID
|
Checks to see if the last tag read by CheckForTag is saved into memory. Returns true if tag is stored in memory.
|
[[File:]] -
|
Return
|
|
Initialise
|
Initialises the I2C bus ready for communications with the module. Wipes the tag ID storage ready for data to be stored.
|
- VOID
|
Return
|
|
OpenPort
|
Opens the currently selected COM port, allowing data to be sent and received.
|
- VOID
|
Return
|
|
SetProp
|
Allows the COM port property to be set from a parent component.
|
- STRING
|
PropName
|
|
- ULONG
|
PropVal
|
|
- VOID
|
Return
|
|
GetProp
|
Allows the property filter for the COM port list to be copied to a parent component.
|
- STRING
|
PropName
|
|
- STRING
|
Return
|
|
GetConsoleHandle
|
Gets the handle to the console allowing data displaying on the panel etc.
|
[[File:]] -
|
Return
|
|
SendByteArray
|
Sends an array of bytes to the COM port.
|
- BYTE
|
Data
|
Data byte array to send
|
- UINT
|
Length
|
Number of bytes to send
|
- VOID
|
Return
|
|
ReceiveBinary16Bit
|
Receives a binary 16-bit value split across two bytes.
|
[[File:]] -
|
MSBfirst
|
0=Least significant byte first, 1=Most significant byte first
|
- BYTE
|
Timeout
|
Max amount of time in ms to wait between bytes
|
- UINT
|
Return
|
|
ReceiveFloat
|
Attempts to receive a floating point number as ASCII characters and convert back into a numeric value. Note this function will receive until a timeout or a none numeric char is received, the none numeric char will be lost.
|
- BYTE
|
Timeout
|
Max time in ms to wait in between bytes
|
[[File:]] -
|
IgnoreData
|
0=Dont ignore any data, 1=Ignore any initial none numeric data
|
[[File:]] -
|
Return
|
|
SendFloat
|
Sends out a floating point number as an ASCII String from the UART interface.
|
[[File:]] -
|
Number
|
|
- VOID
|
Return
|
|
SendHexNumber
|
Sends out a number as an ASCII hexadecimal String from the UART interface.
|
- ULONG
|
Number
|
|
- BYTE
|
NumChars
|
Number of characters in the string data, 0 for auto, 2 for 0x00, 4 for 0x0000
|
[[File:]] -
|
Prefix
|
Generate hexadecimal prefix 0x e.g. 1= 0xFF, 0= FF
|
- VOID
|
Return
|
|
SetFlowControl
|
Allows the Flowcontrol signals to be enabled or disabled.
|
- BYTE
|
State
|
A value of 0 disables flow control, 1 or above willl enable flow control.
|
- VOID
|
Return
|
|
OpenPort
|
Opens the currently selected COM port, allowing data to be sent and received.
|
- VOID
|
Return
|
|
ReceiveHexNumber
|
Attempts to receive a hex number as ASCII characters and convert back into a numeric value. Note this function will receive until a timeout or a none hexadecimal char is received, the none numeric char will be lost.
|
- BYTE
|
Timeout
|
Max time in ms to wait in between bytes
|
[[File:]] -
|
IgnoreData
|
0=Dont ignore any data, 1=Ignore any initial none numeric data
|
[[File:]] -
|
Prefix
|
Look for prefix before receiving, 1=0xFF, 0=FF
|
- ULONG
|
Return
|
|
SetProp
|
Allows the COM port property to be set from a parent component.
|
- STRING
|
PropName
|
|
- ULONG
|
PropVal
|
|
- VOID
|
Return
|
|
SendBinary32Bit
|
Sends out a 32-bit binary value split across four bytes.
|
- ULONG
|
Value
|
|
[[File:]] -
|
MSBfirst
|
0=Least significant byte first, 1=Most significant byte first
|
- VOID
|
Return
|
|
SendBinaryFloat
|
Sends out a 32-bit binary floating point value split across four bytes.
|
[[File:]] -
|
Value
|
|
[[File:]] -
|
MSBfirst
|
0=Least significant byte first, 1=Most significant byte first
|
- VOID
|
Return
|
|
GetProp
|
Allows the property filter for the COM port list to be copied to a parent component.
|
- STRING
|
PropName
|
|
- STRING
|
Return
|
|
ReceiveByteArray
|
Attempts to receive an array of bytes using the COM port Returns the number of bytes received.
|
- BYTE
|
Data
|
|
- UINT
|
MaxLength
|
Max number of bytes to try and read
|
- UINT
|
Timeout
|
Time to wait for incoming data in milliseconds
|
- UINT
|
Return
|
|
ReceiveString
|
Attempts to receive an string using the COM port Returns the number of bytes received.
|
- UINT
|
Timeout
|
Time to wait for incoming data in milliseconds
|
- UINT
|
MaxLength
|
Max number of bytes to try and read
|
- STRING
|
Return
|
|
PWMEnable
|
Allows pulse width modulated transistor outputs to be switched on or off. Bit 0 = Enable AB Bit 1 = A / Bit 2 = B Bit 3 = C / Bit 4 = D Bit 5 = Enable CD
|
- BYTE
|
EnableMask
|
Range 0-63 or 0b00000 to 0b111111
|
- VOID
|
Return
|
|
Initialise
|
|
- VOID
|
Return
|
|
GetProp
|
Allows the property filter for the COM port list to be copied to a parent component.
|
- STRING
|
PropName
|
|
- STRING
|
Return
|
Property reference
|
Properties
|
|
Device Address
|
External device address used to communicate with the module. Default 125 or 0x7D
|
|
Stored Tag Count
|
Number of tags IDs to store as valid IDs for use with IsKnownID. For example max number of users for a door entry system. Each stored ID requires 6 bytes of RAM memory. Max 42.
|
|
Connections
|
|
Channel
|
Channel selection
|
|
Baud Select
|
Baud rate option selector
|
|
Baud Rate
|
Baud rate to be used
|
|
SDA
|
Pin used for SDA (data signal)
|
|
SCL
|
Pin used for SCL (clock signal)
|
|
Stop Delay
|
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.
|
|
Simulations
|
|
Scope Traces
|
Selects if the component pin connections are automatically generated on the data recorder window or not. Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion. No: Do not show the pin signals on the data recorder window.
|
|
Console Data
|
Selects if the console data is automatically generated or not
|
|
API
|
Specifies the injector component on the panel to interact with to provide comms simulation.
|