A N 6 9 2
64
Rev 0.4
5.4.6. Human Machine Interface Module
The HMI related source files, called 'hmi.h' and 'hmi.c', can be found 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. Checking the status of
the various hardware components require a common cyclic mechanism. A 1 ms interrupt based cycle must be
running in the background to serve the different handlers. Using the LED handler, states of LEDs can be set and
cleared either separately or together.
The status of the push-buttons can be read by using the button handler. Even if more button events have happened
simultaneously, they can be stored to be handled later. The last pushed button event is always available first
amongst the unhandled events. Using the buzzer related sub-interface, the state of the buzzer can be changed to
the required one.
Function Name:
U8 bSpi_ReadByteBitbangSpi0
(void)
Description:
This function is used to read one byte from SPI0 using bitbang method.
Return Value:
Read byte
Function Name:
U8 bSpi_ReadByteBitbangSpi1
(void)
Description:
This function is used to read one byte from SPI1 using bitbang method.
Return Value:
Read byte
Function Name:
void
vSpi_WriteBitsBitbangSpi0
(U8 biDataIn, U8 biNumOfBits)
Description:
This function is used to write specified number of bits to SPI0 using bitbang method.
Input Parameter(s):
biDataIn : Input byte of data bits
Output Parameters(s):
biNumOfBits : Number of bits to be written to SPI
Return Value:
None
Function Name:
void
vSpi_WriteBitsBitbangSpi1
(U8 biDataIn, U8 biNumOfBits)
Description:
This function is used to write specified number of bits to SPI1 using bitbang method.
Input Parameter(s):
biDataIn : Input byte of data bits
Output Parameters(s):
biNumOfBits : Number of bits to be written to SPI
Return Value:
None
Function Name:
void
vHmi_InitLedHandler
(void)
Description:
This function is used to initialize the LED 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 Si4455 Series
Page 8: ...AN692 8 Rev 0 4 Figure 6 Device Configuration Options ...
Page 22: ...AN692 22 Rev 0 4 Figure 21 Supply Current versus Time Diagram from Shutdown to RX State ...
Page 23: ...AN692 Rev 0 4 23 4 4 Radio Chip Waking Up Figure 22 Radio Wake Up Process ...
Page 35: ...AN692 Rev 0 4 35 Figure 32 Transmission Flowchart ...
Page 39: ...AN692 Rev 0 4 39 Figure 33 Reception Flowchart ...
Page 41: ...AN692 Rev 0 4 41 Figure 34 Bidirectional Variable Packet Example Project Flowchart ...
Page 47: ...AN692 Rev 0 4 47 Figure 41 Long Packet Transmission Flowchart ...
Page 48: ...AN692 48 Rev 0 4 Figure 42 Long Packet RX Flowchart ...