SmartIO Look Up Table (LUT) functions.
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. 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...
|
|
SmartIO Look Up Table (LUT) functions.
◆ Cy_SmartIO_GetLutTr()
Gets the specified LUT input trigger source.
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
trNum | Input trigger number |
- Returns
- LUT input trigger source
- Function Usage
◆ Cy_SmartIO_SetLutTr()
Sets the specified LUT input trigger source.
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
trNum | Input trigger number |
trSrc | Input trigger source |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_SetLutTrAll()
Sets all LUT input triggers to the same source.
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
trSrc | Input trigger source |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetLutOpcode()
Gets the opcode of the specified LUT.
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
- Returns
- LUT opcode
- Function Usage
◆ Cy_SmartIO_SetLutOpcode()
Sets the opcode of the specified LUT.
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
opcode | LUT opcode |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetLutMap()
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 |
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
- Returns
- Bitfield [7:0] mapping of the 3:1 LUT
- Function Usage
◆ Cy_SmartIO_SetLutMap()
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 |
- Parameters
-
base | Pointer to the Smart I/O base address |
lutNum | LUT index number |
lutMap | Bitfield [7:0] mapping of the 3:1 LUT |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
uint8_t lutMap;
if(lutMap != 0x01u)
{
}