Silicon Laboratories Si4010 Software Programming Manual page 83

Hide thumbs Also See for Si4010:
Table of Contents

Advertisement

Outputs:
None
vStl_SingleTxLoop
Description: Transmits a single frame and keeps fine tuning the transmission frequency.
This function performs two main tasks in a loop:
1. Take a byte from the input byte frame and pass it through the encoding. See
vStl_EncodeSetup() for details. Then feed each of the encoded data byte to the
ODS. It is constantly polling the ODS empty flag in the loop to determine whether
the ODS is ready to take another encoded data byte.
2. Monitor the output of the DMD ISR and if a temperature sample is ready then fine
tune the transmission frequency based on the current temperature.
It ends the loop when all data was fed into the ODS.
Note that the encoding function takes the input byte and converts it up to 8 bytes array to
be transmitted. Then the bytes from the converted byte array are fed into the ODS, the
byte at array index 0 first. The ODS will start transmitting bits from the input converted
byte, bit 0 going to PA first. From each converted byte the ODS will transmit only number
of bits specified in the tOds_Setup structure, item bGroupWidth. The ODS function
vOds_Setup() must be called before any of the STL functions can be used.
Inputs:
pbiFrameHead: (pointer to BYTE in XDATA) Points to the first byte in the array
which is the frame to be sent. The first byte is the first to go out to PA. Each byte is
passed into the conversion function, converting each byte to up 8 bytes for trans-
mission. Least significant bit (b0) of each byte in the converted array goes onto the
PA first.
biFrameSize: (BYTE) Number of bytes to be encoded and transmitted from the
input frame. It refers to how many bytes from the input frame are used for trans-
mission. Each byte is then encoded and then transmitted. Therefore, this number
refers to the number of byte being fed into the encoding function, not the actual
number of bytes appearing in the transmitted packet by PA.
Outputs:
None
vStl_PostLoop
Rev. 1.0
AN370
83

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Si4010 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents