SYNC is an encoding which runs in conjunction with an underlying protocol.
This should be read in conjunction with the generic data communications documentation.
You must use #include "smdc_sync.h" to get the
appropriate declarations.
The encoding type is kSMDCConfigEncodingSync.
There is no configuration for this encoding, so the encoding_config_data pointer should be null (0) and the encoding_config_length should be zero.
The firmware module syncrx must have been downloaded to receive, and synctx is required to transmit.
Data in the receive buffer appears in multiples of 32 bits. Bytes are in order of reception and within a byte the least significant bit is the first that was received.
Within a byte the least significant bit is the first transmitted. Only multiples of 32 bits can be transmitted, so data which is not a multiple of 32-bits must be padded. For example, if you write data in chunks of 5, 11, and 26 bytes, which is 42 bytes, only 40 bytes will be sent, with two bytes remaining in the internal buffers.