Difference between revisions of "Component: DALI Slave (Comms: System)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray;...") |
|||
Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
− | + | ''<span style="color:red;">No additional examples</span>'' | |
− | |||
− | |||
− | |||
− | |||
==Downloadable macro reference== | ==Downloadable macro reference== | ||
Line 269: | Line 265: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRxIdent''' | ||
+ | |- | ||
+ | | colspan="2" | Gets the Rx ID as a Integer Standard and Extended IDs. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Buffer | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u32-icon.png]] - ULONG | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} |
Revision as of 10:35, 17 November 2021
Author | MatrixTSL |
Version | 1.0 |
Category | Comms: System |
Contents
DALI Slave component
A serial based communications protocol designed for controlling lighting, specifically digitally controlled dimmable fluorescent ballasts. DALI requires the signals to be level shifted from VCC and GND to +9.5V - +25.5V and GND using external circuitry.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
ReceiveForwardFrame |
Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply | |
![]() |
Return |
![]() |
CheckForIndividualAddress |
Tests the 16-bit incoming data for the defined individual address Returns 0 for no match, returns 1 for a match | |
![]() |
Data |
![]() |
Return |
![]() |
CollectDataByte |
Returns the data byte from a 16-bit data packet | |
![]() |
Data |
![]() |
Return |
![]() |
CheckForGroupAddress |
Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | |
![]() |
Data |
![]() |
Return |
![]() |
CollectPacketType |
Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command | |
![]() |
Data |
![]() |
Return |
![]() |
TransmitBackwardFrame |
Send out a 8-bit frame consisting of a data byte. | |
![]() |
Data |
Data Byte | |
![]() |
Return |
![]() |
Initialise |
Configures the UART serial interface. | |
![]() |
Return |
![]() |
RawSend |
Sends data to the LCD display | |
![]() |
data |
The data byte to send to the LCD | |
[[File:]] - | type |
A boolean to indicate command type: true to write data, false to write a command | |
![]() |
Return |
![]() |
ReadAnalogAsByte |
Reads one of the analogue components as an byte value | |
![]() |
Channel |
0 = LDR, 1 = POT | |
![]() |
Return |
![]() |
ReadAnalogAsInt |
Reads one of the analogue components as an Integer value | |
![]() |
Channel |
0 = LDR, 1 = POT | |
[[File:]] - | Return |
![]() |
Start |
Startup routine required by the hardware device. Automatically clears the display after initialising. | |
![]() |
Return |
![]() |
SetLEDState |
Sets the state of a single LED | |
![]() |
Port |
0 = PortA, 1 = PortB | |
![]() |
LED |
0 = LED0, 7 = LED7 | |
![]() |
State |
![]() |
Return |
![]() |
GetRxIdent |
Gets the Rx ID as a Integer Standard and Extended IDs. | |
![]() |
Buffer |
![]() |
Return |
![]() |
Initialise |
Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
TX Pin |
![]() |
RX Pin |
![]() |
Individual Address |
Address ranging from 0-63 | |
![]() |
Group Address |
Address ranging from 0-15 | |
![]() |
Connections |
![]() |
Simulations |
![]() |
API |