3.3 CLC APIs in MCC Melody

The MCC Melody CLC module generates two APIs that can be called by other code to use the CLC:
  • void CLC1_Initialize(void):This API initializes all CLC registers for the specified CLC (CLC1 in this instance), including CLCnCON, CLCnPOL, and the sets of CLCnGLSx and CLCnSELx registers to implement the logic gates selected through the graphic interface.
  • bool CLC1_OutputStatusGet(void):This API returns the output of the CLC reference (once again, CLC1) as a boolean value.