Functions | |
| cy_en_smartio_luttr_t | Cy_SmartIO_GetLutTr (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum, cy_en_smartio_trnum_t trNum) |
| Gets the specified LUT input trigger source. More... | |
| cy_en_smartio_status_t | Cy_SmartIO_SetLutTr (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum, cy_en_smartio_trnum_t trNum, cy_en_smartio_luttr_t trSrc) |
| Sets the specified LUT input trigger source. More... | |
| cy_en_smartio_status_t | Cy_SmartIO_SetLutTrAll (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum, cy_en_smartio_luttr_t trSrc) |
| Sets all LUT input triggers to the same source. More... | |
| __STATIC_INLINE cy_en_smartio_lutopc_t | Cy_SmartIO_GetLutOpcode (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum) |
| Gets the opcode of the specified LUT. More... | |
| cy_en_smartio_status_t | Cy_SmartIO_SetLutOpcode (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum, cy_en_smartio_lutopc_t opcode) |
| Sets the opcode of the specified LUT. More... | |
| __STATIC_INLINE uint8_t | Cy_SmartIO_GetLutMap (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum) |
| Gets the 3:1 truth table of the specified LUT. More... | |
| cy_en_smartio_status_t | Cy_SmartIO_SetLutMap (SMARTIO_PRT_Type *base, cy_en_smartio_lutnum_t lutNum, uint8_t lutMap) |
| Sets the 3 bit input to 1 bit output mapping of the specified LUT. More... | |
| cy_en_smartio_luttr_t Cy_SmartIO_GetLutTr | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum, | ||
| cy_en_smartio_trnum_t | trNum | ||
| ) |
Gets the specified LUT input trigger source.
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| trNum | Input trigger number |
| cy_en_smartio_status_t Cy_SmartIO_SetLutTr | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum, | ||
| cy_en_smartio_trnum_t | trNum, | ||
| cy_en_smartio_luttr_t | trSrc | ||
| ) |
Sets the specified LUT input trigger source.
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| trNum | Input trigger number |
| trSrc | Input trigger source |
| cy_en_smartio_status_t Cy_SmartIO_SetLutTrAll | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum, | ||
| cy_en_smartio_luttr_t | trSrc | ||
| ) |
Sets all LUT input triggers to the same source.
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| trSrc | Input trigger source |
| __STATIC_INLINE cy_en_smartio_lutopc_t Cy_SmartIO_GetLutOpcode | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum | ||
| ) |
Gets the opcode of the specified LUT.
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| cy_en_smartio_status_t Cy_SmartIO_SetLutOpcode | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum, | ||
| cy_en_smartio_lutopc_t | opcode | ||
| ) |
Sets the opcode of the specified LUT.
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| opcode | LUT opcode |
| __STATIC_INLINE uint8_t Cy_SmartIO_GetLutMap | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum | ||
| ) |
Gets the 3:1 truth table of the specified LUT.
| tr2 | tr1 | tr0 | lutNum |
|---|---|---|---|
| 0 | 0 | 0 | bit 0 |
| 0 | 0 | 1 | bit 1 |
| 0 | 1 | 0 | bit 2 |
| 0 | 1 | 1 | bit 3 |
| 1 | 0 | 0 | bit 4 |
| 1 | 0 | 1 | bit 5 |
| 1 | 1 | 0 | bit 6 |
| 1 | 1 | 1 | bit 7 |
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| cy_en_smartio_status_t Cy_SmartIO_SetLutMap | ( | SMARTIO_PRT_Type * | base, |
| cy_en_smartio_lutnum_t | lutNum, | ||
| uint8_t | lutMap | ||
| ) |
Sets the 3 bit input to 1 bit output mapping of the specified LUT.
| tr2 | tr1 | tr0 | lutMap |
|---|---|---|---|
| 0 | 0 | 0 | bit 0 |
| 0 | 0 | 1 | bit 1 |
| 0 | 1 | 0 | bit 2 |
| 0 | 1 | 1 | bit 3 |
| 1 | 0 | 0 | bit 4 |
| 1 | 0 | 1 | bit 5 |
| 1 | 1 | 0 | bit 6 |
| 1 | 1 | 1 | bit 7 |
| base | Pointer to the Smart I/O base address |
| lutNum | LUT index number |
| lutMap | Bitfield [7:0] mapping of the 3:1 LUT |