SmartIO Data Unit (DU) functions.
More...
|
cy_en_smartio_dutr_t | Cy_SmartIO_GetDuTr (SMARTIO_PRT_Type *base, cy_en_smartio_trnum_t trNum) |
| Gets the data unit input trigger source. More...
|
|
cy_en_smartio_status_t | Cy_SmartIO_SetDuTr (SMARTIO_PRT_Type *base, cy_en_smartio_trnum_t trNum, cy_en_smartio_dutr_t trSrc) |
| Sets the data unit input trigger source. More...
|
|
cy_en_smartio_status_t | Cy_SmartIO_SetDuTrAll (SMARTIO_PRT_Type *base, cy_en_smartio_dutr_t trSrc) |
| Sets all the data unit input trigger sources. More...
|
|
__STATIC_INLINE cy_en_smartio_dudata_t | Cy_SmartIO_GetDuData (SMARTIO_PRT_Type *base, cy_en_smartio_datanum_t dataNum) |
| Gets the data unit's input "data" source. More...
|
|
cy_en_smartio_status_t | Cy_SmartIO_SetDuData (SMARTIO_PRT_Type *base, cy_en_smartio_datanum_t dataNum, cy_en_smartio_dudata_t dataSrc) |
| Sets the data unit's input "data" source. More...
|
|
__STATIC_INLINE cy_en_smartio_duopc_t | Cy_SmartIO_GetDuOpc (SMARTIO_PRT_Type *base) |
| Gets the data unit's opcode. More...
|
|
__STATIC_INLINE cy_en_smartio_dusize_t | Cy_SmartIO_GetDuSize (SMARTIO_PRT_Type *base) |
| Gets the data unit's opcode operand bit-width. More...
|
|
cy_en_smartio_status_t | Cy_SmartIO_SetDuOperation (SMARTIO_PRT_Type *base, cy_en_smartio_duopc_t opcode, cy_en_smartio_dusize_t size) |
| Sets the data unit's opcode and operand bit-width. More...
|
|
__STATIC_INLINE uint8_t | Cy_SmartIO_GetDataReg (SMARTIO_PRT_Type *base) |
| Gets the data unit's DATA register value. More...
|
|
cy_en_smartio_status_t | Cy_SmartIO_SetDataReg (SMARTIO_PRT_Type *base, uint8_t dataReg) |
| Sets the data unit's DATA register value. More...
|
|
SmartIO Data Unit (DU) functions.
◆ Cy_SmartIO_GetDuTr()
Gets the data unit input trigger source.
- Parameters
-
base | Pointer to the Smart I/O base address |
trNum | Input trigger number |
- Returns
- Data unit input trigger source
- Function Usage
◆ Cy_SmartIO_SetDuTr()
Sets the data unit input trigger source.
- Parameters
-
base | Pointer to the Smart I/O base address |
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_SetDuTrAll()
Sets all the data unit input trigger sources.
- Parameters
-
base | Pointer to the Smart I/O base address |
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_GetDuData()
Gets the data unit's input "data" source.
- Parameters
-
base | Pointer to the Smart I/O base address |
dataNum | Input data number |
- Returns
- Data unit input trigger source
- Function Usage
◆ Cy_SmartIO_SetDuData()
Sets the data unit's input "data" source.
- Parameters
-
base | Pointer to the Smart I/O base address |
dataNum | Input data number |
dataSrc | Data unit 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_GetDuOpc()
Gets the data unit's opcode.
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Data unit opcode
- Function Usage
◆ Cy_SmartIO_GetDuSize()
Gets the data unit's opcode operand bit-width.
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Data unit operand bit-width
- Function Usage
◆ Cy_SmartIO_SetDuOperation()
Sets the data unit's opcode and operand bit-width.
- Parameters
-
base | Pointer to the Smart I/O base address |
opcode | Data Unit opcode |
size | Data unit operand bit-width |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetDataReg()
__STATIC_INLINE uint8_t Cy_SmartIO_GetDataReg |
( |
SMARTIO_PRT_Type * |
base | ) |
|
Gets the data unit's DATA register value.
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- DATA register value
- Function Usage
◆ Cy_SmartIO_SetDataReg()
Sets the data unit's DATA register value.
- Parameters
-
base | Pointer to the Smart I/O base address |
dataReg | DATA register value |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
uint8_t dataReg;
if(dataReg != 0xFFu)
{
}