![Silicon Laboratories EZRADIOPRO Si4060 Programming Manual Download Page 38](http://html1.mh-extra.com/html/silicon-laboratories/ezradiopro-si4060/ezradiopro-si4060_programming-manual_1272031038.webp)
A N 6 3 3
38
Rev. 0.7
9.4.6. Human Machine Interface Module
The human machine interface (HMI)-related source files, called hmi.h and hmi.c, are located in the /src/driver/
folder. In order to use this module, the required handlers need to be initialized at the very beginning of the program.
The status of the various hardware components must be checked in order to have a common cyclic mechanism. In
addition, it is vital that a 1 ms interrupt-based cycle run in the background to serve the different handlers. Using the
LED handler, states of LEDs can be set and cleared either separately or together.
Using the button handler, statuses of the push-buttons can be read. If multiple button events happen
simultaneously, they can be stored to be handled later. The last pushed button event is always available first
amongst the un-handled events. Using the buzzer related sub-interface, the state of buzzer can be changed to the
required one.
Function Name:
void
vHmi_InitLedHandler
(void)
Description:
This function is used to initialize the Led handler.
Return value:
None
Note:
Must be called from the initialization section.
Re-initialization of LED Handler supported by the extended HMI driver.
Function Name:
void
vHmi_ChangeLedState
(eHmi_Leds qiLed, eHmi_LedStates qiLedState)
Description:
This function is used to change state of selected Led.
Input Parameter(s):
qiLed : Led to change its state
qiLedState : New state of qiLed
Return Value:
None
Function Name:
void
vHmi_ChangeAllLedState
(eHmi_LedStates qiLedState)
Description:
This function is used to change state of all Leds.
Input Parameter(s):
qiLedState : New state of all the Leds
Return Value:
None
Function Name:
void
vHmi_ClearAllLeds
(void)
Description:
This function is used to force all Leds to off immediately.
Return Value:
None
Function Name:
void
vHmi_LedHandler
(void)
Description:
This function is used to handle Led management.
Return Value:
None
Function Name:
void
vHmi_InitPbHandler
(void)
Description:
This function is used to initialize push-button handler.
Return Value:
None
Note:
It has to be called from the initialization section.
Re-initialization of LED Handler supported by the extended HMI driver.
Summary of Contents for EZRADIOPRO Si4060
Page 24: ...AN633 24 Rev 0 7 Figure 20 Supply Current versus Time Diagram from Shutdown to RX State...
Page 67: ...AN633 Rev 0 7 67 Figure 48 Variable Length Packet Reception Flowchart...
Page 69: ...AN633 Rev 0 7 69 Figure 50 Packet Matching Reception Flowchart...
Page 73: ...AN633 Rev 0 7 73 Figure 54 Packet Reception with Automatic RX Hopping Flowchart...
Page 75: ...AN633 Rev 0 7 75 Figure 56 Packet Reception with Manual Rx Hopping...
Page 80: ...AN633 80 Rev 0 7 Figure 62 Long Packet Transmission Workflow...
Page 81: ...AN633 Rev 0 7 81 Figure 63 Long Packet RX Flowchart...