General SmartIO functions.
More...
General SmartIO functions.
◆ Cy_SmartIO_GetChBypass()
__STATIC_INLINE uint8_t Cy_SmartIO_GetChBypass |
( |
SMARTIO_PRT_Type * |
base | ) |
|
Gets the bypass/route state of all 8 channels in the Smart I/O.
Bypass bit | Channel |
0 | io0<->chip0 |
1 | io1<->chip1 |
2 | io2<->chip2 |
3 | io3<->chip3 |
4 | io4<->chip4 |
5 | io5<->chip5 |
6 | io6<->chip6 |
7 | io7<->chip7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Bypass/Route state of 8 io<->chip channels (bits [7:0]): 1=bypass, 0=routed.
- Function Usage
◆ Cy_SmartIO_SetChBypass()
Sets the bypass/route state of all 8 channels in the Smart I/O.
Bypass bit | Channel |
0 | io0<->chip0 |
1 | io1<->chip1 |
2 | io2<->chip2 |
3 | io3<->chip3 |
4 | io4<->chip4 |
5 | io5<->chip5 |
6 | io6<->chip6 |
7 | io7<->chip7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
bypassMask | Bypass/Route state of 8 io<->chip channels (bits [7:0]): 1=bypass, 0=routed. |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetClock()
Gets the clock source of the Smart I/O.
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Clock source
- Function Usage
◆ Cy_SmartIO_SetClock()
Sets the clock source of the Smart I/O.
- Parameters
-
base | Pointer to the Smart I/O base address |
clkSrc | Pointer to the Smart I/O base address |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetIoSync()
__STATIC_INLINE uint8_t Cy_SmartIO_GetIoSync |
( |
SMARTIO_PRT_Type * |
base | ) |
|
Gets the synchronization mode of the 8 I/O terminals.
Sync bit | I/O terminal |
0 | io0 |
1 | io1 |
2 | io2 |
3 | io3 |
4 | io4 |
5 | io5 |
6 | io6 |
7 | io7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Sync mode of 8 I/O terminals (bits [7:0]): 1=sync, 0=no sync.
- Function Usage
◆ Cy_SmartIO_SetIoSync()
Sets the synchronization mode of the 8 I/O terminals.
Sync bit | I/O terminal |
0 | io0 |
1 | io1 |
2 | io2 |
3 | io3 |
4 | io4 |
5 | io5 |
6 | io6 |
7 | io7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
ioSyncEn | Sync mode of 8 I/O terminals (bits [7:0]): 1=sync, 0=no sync. |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_GetChipSync()
__STATIC_INLINE uint8_t Cy_SmartIO_GetChipSync |
( |
SMARTIO_PRT_Type * |
base | ) |
|
Gets the synchronization mode of the 8 chip-side terminals.
Sync bit | chip terminal |
0 | chip0 |
1 | chip1 |
2 | chip2 |
3 | chip3 |
4 | chip4 |
5 | chip5 |
6 | chip6 |
7 | chip7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
- Returns
- Sync mode of 8 chip-side terminals (bits [7:0]): 1=sync, 0=no sync.
- Function Usage
◆ Cy_SmartIO_SetChipSync()
Sets the synchronization mode of the 8 chip-side terminals.
Sync bit | chip terminal |
0 | chip0 |
1 | chip1 |
2 | chip2 |
3 | chip3 |
4 | chip4 |
5 | chip5 |
6 | chip6 |
7 | chip7 |
- Parameters
-
base | Pointer to the Smart I/O base address |
chipSyncEn | Sync mode of 8 chip-side terminals (bits [7:0]): 1=sync, 0=no sync. |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage
◆ Cy_SmartIO_HoldOverride()
Configures the hold override mode.
In Deep-Sleep power mode, the HSIOM holds the GPIO output and output enable signals for all signals that operate in chip active domain. Enabling the hold override allows the Smart I/O to deliver Deep-Sleep output functionality on these GPIO terminals. If the Smart I/O should not drive any of the GPIO outputs, the hold override should be disabled.
- Parameters
-
base | Pointer to the Smart I/O base address |
hldOvr | true = Enabled: Smart I/O controls the port I/Os false = Disabled: HSIOM controls the port I/Os |
- Returns
- Status of the operation
- Note
- The Smart I/O block must be disabled before calling this function.
- Function Usage