AN370
vEnc_Set4b5bLastBit
Description: Sets the initial value of the bit that the 4b5b encoding references as the last
bit of the previously encoded group of 5. The encoding of each group depends on the last
bit of the previously encoded group. This function must be called before each frame trans-
mission when using the 4b5b encoding.
Inputs:
bLastBitValue: (BYTE) The least significant bit in this byte is used to initialize
the last bit of the previously encoded group variable.
Outputs:
None
bEnc_ManchesterEncode
Description: Manchester encoding of the input byte. Each input byte is converted into two
bytes. One bit, after being Manchester encoded, results in two bits. Note that the bit 0 of
the input byte is converted to the bits 0 and 1 of the pboEncodedBytes[0] byte. The bit 7 of
the input byte is converted to the bits 6 and 7 of the pboEncodedBytes[1].
The bits are therefore converted in the little endian fashion. The ODS will process the pbo-
EncodedByte array such that the bit 0 of the byte pboEncodedBytes[0] will get transmitted
first, etc.
Inputs:
pboEncodedBytes: (pointer to BYTE in XDATA) Pointer to the head of the two
byte array which will contain the resulting encoded bytes. The caller must declare
this array.
biByteToEncode: (BYTE) Byte to be encoded.
Outputs:
pboEncodedBytes: (pointer to BYTE in XDATA) Updated 2 byte array with
resulting encoded bytes.
Valid encoded array size: (BYTE): Number of bytes in the output array pboEn-
codedBytes which are valid after conversion. In this case the value is 2.
52
Rev. 1.0
Need help?
Do you have a question about the Si4010 and is the answer not in the manual?
Questions and answers