Difference between revisions of "Component: IrDA (EB012, MCP1250, MCP2120) (Wireless)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import BR)
 
(5 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
|-
 
|-
 
| width="20%" style="color: gray;" | Version
 
| width="20%" style="color: gray;" | Version
| 1.1
+
| 1.1 (Release)
 
|-
 
|-
 
| width="20%" style="color: gray;" | Category
 
| width="20%" style="color: gray;" | Category
Line 20: Line 20:
  
 
==Examples==
 
==Examples==
''<span style="color:red;">No additional examples</span>''
+
===Transmit===
  
 +
Basic example which repeatedly transmits a string of data via the IrDA interface.
 +
{{Fcfile|IrDA_Tx.fcfx|IrDA Transmit}}
 +
===Receive===
 +
 +
Basic example which waits for any incoming data and then displays the data on the LCD.
 +
{{Fcfile|IrDA_Rx.fcfx|IrDA Receive}}
  
 
==Downloadable macro reference==
 
==Downloadable macro reference==
  
 
===<span style="font-weight: normal;"><u><tt>SendChar</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>SendChar</tt></u></span>===
''<span style="color:red;">No additional information</span>''
+
Sends a byte character to the IrDA connection.
 
 
 
 
  
 
'''Parameters'''
 
'''Parameters'''
Line 41: Line 45:
  
 
===<span style="font-weight: normal;"><u><tt>ReceiveChar</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>ReceiveChar</tt></u></span>===
''<span style="color:red;">No additional information</span>''
+
Receives byte character from the IrDA connection.
 +
 
 +
'''Parameters'''
 +
 
 +
:[[Variable Types|INT]] ''Timeout''
 +
::Max amount of time in milliseconds to wait for data.
  
  
 +
'''Return value'''
 +
 +
:[[Variable Types|INT]]
 +
 +
 +
===<span style="font-weight: normal;"><u><tt>Initialise</tt></u></span>===
 +
Initialises the UART ready for IrDA data to be sent or received,
  
 
'''Parameters'''
 
'''Parameters'''
  
:[[Variable Types|INT]] ''Timeout''
+
:''This macro has no parameters''
  
  
 
'''Return value'''
 
'''Return value'''
  
:[[Variable Types|INT]]
+
:''This call does not return a value''
  
  
Line 66: Line 82:
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''CHANNEL''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''CHANNEL''.
  
''<span style="color:red;">No additional information</span>''
+
Specifies the UART peripheral used to transfer data between the IrDA interface.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Baud Rate</u></span>
 
<span style="font-weight: normal;"><u>Baud Rate</u></span>
Line 74: Line 88:
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''BAUD_LIST''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''BAUD_LIST''.
  
''<span style="color:red;">No additional information</span>''
+
Sets the communications data rate in bits per second.
 
 
 
 
  
<span style="font-weight: normal;"><u>INTERFACE</u></span>
+
<span style="font-weight: normal;"><u>Interface</u></span>
  
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''INTERFACE''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''INTERFACE''.
  
''<span style="color:red;">No additional information</span>''
+
Decides which IrDA interface IC we wish to communicate via.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Echo</u></span>
 
<span style="font-weight: normal;"><u>Echo</u></span>
Line 90: Line 100:
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''ECHO''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''ECHO''.
  
''<span style="color:red;">No additional information</span>''
+
Allows any incoming data to be automatically echoed back out.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>TX</u></span>
 
<span style="font-weight: normal;"><u>TX</u></span>
Line 98: Line 106:
 
This property is of type ''Single digital pin'' and can be referenced with the variable name ''TX''.
 
This property is of type ''Single digital pin'' and can be referenced with the variable name ''TX''.
  
''<span style="color:red;">No additional information</span>''
+
Transmit pin
 
 
 
 
  
 
<span style="font-weight: normal;"><u>RX</u></span>
 
<span style="font-weight: normal;"><u>RX</u></span>
Line 106: Line 112:
 
This property is of type ''Single digital pin'' and can be referenced with the variable name ''RX''.
 
This property is of type ''Single digital pin'' and can be referenced with the variable name ''RX''.
  
''<span style="color:red;">No additional information</span>''
+
Receive Pin
  
 +
<span style="font-weight: normal;"><u>Label</u></span>
  
 +
This property is of type ''Line of text'' and can be referenced with the variable name ''label''.
  
<span style="font-weight: normal;"><u>Label</u></span>
+
Label used to help identify the component on the panel.
 +
 
 +
<span style="font-weight: normal;"><u>Injector</u></span>
  
This property is of type ''Line of text'' and can be referenced with the variable name ''label''.
+
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''Injector''.
  
 
''<span style="color:red;">No additional information</span>''
 
''<span style="color:red;">No additional information</span>''

Latest revision as of 15:46, 16 February 2017


Author Matrix Ltd.
Version 1.1 (Release)
Category Wireless


Image 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. FC6 Icon.png IrDA Transmit

Receive

Basic example which waits for any incoming data and then displays the data on the LCD. FC6 Icon.png 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

INT


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.

Injector

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

No additional information