Component: IrDA (EB012, MCP1250, MCP2120) (Wireless)
Author | Matrix Ltd. |
Version | 1.1 (Release) |
Category | Wireless |
Contents
IrDA (EB012, MCP1250, MCP2120) component
Low level routines for controlling a standard IrDA interface. Also available in the form of the EB012 IrDA E-block.
Examples
Transmit
Basic example which repeatedly transmits a string of data via the IrDA interface. IrDA Transmit
Receive
Basic example which waits for any incoming data and then displays the data on the LCD. IrDA Receive
Downloadable macro reference
SendChar
Sends a byte character to the IrDA connection.
Parameters
- INT Char
Return value
- This call does not return a value
ReceiveChar
Receives byte character from the IrDA connection.
Parameters
- INT Timeout
- Max amount of time in milliseconds to wait for data.
Return value
Initialise
Initialises the UART ready for IrDA data to be sent or received,
Parameters
- This macro has no parameters
Return value
- This call does not return a value
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.
Specifies the UART peripheral used to transfer data between the IrDA interface.
Baud Rate
This property is of type Fixed list of ints and can be referenced with the variable name BAUD_LIST.
Sets the communications data rate in bits per second.
Interface
This property is of type Fixed list of ints and can be referenced with the variable name INTERFACE.
Decides which IrDA interface IC we wish to communicate via.
Echo
This property is of type Fixed list of ints and can be referenced with the variable name ECHO.
Allows any incoming data to be automatically echoed back out.
TX
This property is of type Single digital pin and can be referenced with the variable name TX.
Transmit pin
RX
This property is of type Single digital pin and can be referenced with the variable name RX.
Receive Pin
Label
This property is of type Line of text and can be referenced with the variable name label.
Label used to help identify the component on the panel.