TIDUE73A April 2018 – November 2024
The BiSS-C Library consists of the following functions, which enable the user to interface with BiSS-C encoders. For a detailed description of the API, refer to the: C2000 BiSS-C Encoder Interface Software Guide (HTML, PDF).Table 2-7 provides a high-level overview of the API.
NAME | DESCRIPTION |
---|---|
Initialization Functions | |
Generate CRC Table |
Generates a lookup table for a given CRC polynomial with a specified number of bits. Two tables are used. One for the single-cycle data CRC calculation and one for the command data CRC calculation. |
Setup Peripheral | Configures the BiSS-C sub-system realized by the CLB logic. |
Initialize Parameters | Initialize parameters required to extract the position and CRC from the single-cycle data. |
Run-time Functions | |
Start Operation | Initiates a BiSS-C transfer by starting the MA signal. |
Process Command Data | Command data state machine which handles the CDM output and CDS input each BiSS-C frame. |
Receive Position | Extract the position, error and warning and CRC from the SCD. Calculates a CRC and compares it to the received CRC. |
Setup a SCD Transaction | Set up the SPI and CLB for a new single-cycle data transfer. |