This module provides basic read/write access to port pins.
◆ bsp_io_level_t
Levels that can be set and read for individual pins
Enumerator |
---|
BSP_IO_LEVEL_LOW | Low.
|
BSP_IO_LEVEL_HIGH | High.
|
◆ bsp_io_direction_t
Direction of individual pins
Enumerator |
---|
BSP_IO_DIRECTION_INPUT | Input.
|
BSP_IO_DIRECTION_OUTPUT | Output.
|
◆ bsp_io_port_t
Superset list of all possible IO ports.
Enumerator |
---|
BSP_IO_PORT_00 | IO port 0.
|
BSP_IO_PORT_01 | IO port 1.
|
BSP_IO_PORT_02 | IO port 2.
|
BSP_IO_PORT_03 | IO port 3.
|
BSP_IO_PORT_04 | IO port 4.
|
BSP_IO_PORT_05 | IO port 5.
|
BSP_IO_PORT_06 | IO port 6.
|
BSP_IO_PORT_07 | IO port 7.
|
BSP_IO_PORT_08 | IO port 8.
|
BSP_IO_PORT_09 | IO port 9.
|
BSP_IO_PORT_10 | IO port 10.
|
BSP_IO_PORT_11 | IO port 11.
|
BSP_IO_PORT_12 | IO port 12.
|
BSP_IO_PORT_13 | IO port 13.
|
BSP_IO_PORT_14 | IO port 14.
|
◆ bsp_io_port_pin_t
Superset list of all possible IO port pins.
Enumerator |
---|
BSP_IO_PORT_00_PIN_00 | IO port 0 pin 0.
|
BSP_IO_PORT_00_PIN_01 | IO port 0 pin 1.
|
BSP_IO_PORT_00_PIN_02 | IO port 0 pin 2.
|
BSP_IO_PORT_00_PIN_03 | IO port 0 pin 3.
|
BSP_IO_PORT_00_PIN_04 | IO port 0 pin 4.
|
BSP_IO_PORT_00_PIN_05 | IO port 0 pin 5.
|
BSP_IO_PORT_00_PIN_06 | IO port 0 pin 6.
|
BSP_IO_PORT_00_PIN_07 | IO port 0 pin 7.
|
BSP_IO_PORT_00_PIN_08 | IO port 0 pin 8.
|
BSP_IO_PORT_00_PIN_09 | IO port 0 pin 9.
|
BSP_IO_PORT_00_PIN_10 | IO port 0 pin 10.
|
BSP_IO_PORT_00_PIN_11 | IO port 0 pin 11.
|
BSP_IO_PORT_00_PIN_12 | IO port 0 pin 12.
|
BSP_IO_PORT_00_PIN_13 | IO port 0 pin 13.
|
BSP_IO_PORT_00_PIN_14 | IO port 0 pin 14.
|
BSP_IO_PORT_00_PIN_15 | IO port 0 pin 15.
|
BSP_IO_PORT_01_PIN_00 | IO port 1 pin 0.
|
BSP_IO_PORT_01_PIN_01 | IO port 1 pin 1.
|
BSP_IO_PORT_01_PIN_02 | IO port 1 pin 2.
|
BSP_IO_PORT_01_PIN_03 | IO port 1 pin 3.
|
BSP_IO_PORT_01_PIN_04 | IO port 1 pin 4.
|
BSP_IO_PORT_01_PIN_05 | IO port 1 pin 5.
|
BSP_IO_PORT_01_PIN_06 | IO port 1 pin 6.
|
BSP_IO_PORT_01_PIN_07 | IO port 1 pin 7.
|
BSP_IO_PORT_01_PIN_08 | IO port 1 pin 8.
|
BSP_IO_PORT_01_PIN_09 | IO port 1 pin 9.
|
BSP_IO_PORT_01_PIN_10 | IO port 1 pin 10.
|
BSP_IO_PORT_01_PIN_11 | IO port 1 pin 11.
|
BSP_IO_PORT_01_PIN_12 | IO port 1 pin 12.
|
BSP_IO_PORT_01_PIN_13 | IO port 1 pin 13.
|
BSP_IO_PORT_01_PIN_14 | IO port 1 pin 14.
|
BSP_IO_PORT_01_PIN_15 | IO port 1 pin 15.
|
BSP_IO_PORT_02_PIN_00 | IO port 2 pin 0.
|
BSP_IO_PORT_02_PIN_01 | IO port 2 pin 1.
|
BSP_IO_PORT_02_PIN_02 | IO port 2 pin 2.
|
BSP_IO_PORT_02_PIN_03 | IO port 2 pin 3.
|
BSP_IO_PORT_02_PIN_04 | IO port 2 pin 4.
|
BSP_IO_PORT_02_PIN_05 | IO port 2 pin 5.
|
BSP_IO_PORT_02_PIN_06 | IO port 2 pin 6.
|
BSP_IO_PORT_02_PIN_07 | IO port 2 pin 7.
|
BSP_IO_PORT_02_PIN_08 | IO port 2 pin 8.
|
BSP_IO_PORT_02_PIN_09 | IO port 2 pin 9.
|
BSP_IO_PORT_02_PIN_10 | IO port 2 pin 10.
|
BSP_IO_PORT_02_PIN_11 | IO port 2 pin 11.
|
BSP_IO_PORT_02_PIN_12 | IO port 2 pin 12.
|
BSP_IO_PORT_02_PIN_13 | IO port 2 pin 13.
|
BSP_IO_PORT_02_PIN_14 | IO port 2 pin 14.
|
BSP_IO_PORT_02_PIN_15 | IO port 2 pin 15.
|
BSP_IO_PORT_03_PIN_00 | IO port 3 pin 0.
|
BSP_IO_PORT_03_PIN_01 | IO port 3 pin 1.
|
BSP_IO_PORT_03_PIN_02 | IO port 3 pin 2.
|
BSP_IO_PORT_03_PIN_03 | IO port 3 pin 3.
|
BSP_IO_PORT_03_PIN_04 | IO port 3 pin 4.
|
BSP_IO_PORT_03_PIN_05 | IO port 3 pin 5.
|
BSP_IO_PORT_03_PIN_06 | IO port 3 pin 6.
|
BSP_IO_PORT_03_PIN_07 | IO port 3 pin 7.
|
BSP_IO_PORT_03_PIN_08 | IO port 3 pin 8.
|
BSP_IO_PORT_03_PIN_09 | IO port 3 pin 9.
|
BSP_IO_PORT_03_PIN_10 | IO port 3 pin 10.
|
BSP_IO_PORT_03_PIN_11 | IO port 3 pin 11.
|
BSP_IO_PORT_03_PIN_12 | IO port 3 pin 12.
|
BSP_IO_PORT_03_PIN_13 | IO port 3 pin 13.
|
BSP_IO_PORT_03_PIN_14 | IO port 3 pin 14.
|
BSP_IO_PORT_03_PIN_15 | IO port 3 pin 15.
|
BSP_IO_PORT_04_PIN_00 | IO port 4 pin 0.
|
BSP_IO_PORT_04_PIN_01 | IO port 4 pin 1.
|
BSP_IO_PORT_04_PIN_02 | IO port 4 pin 2.
|
BSP_IO_PORT_04_PIN_03 | IO port 4 pin 3.
|
BSP_IO_PORT_04_PIN_04 | IO port 4 pin 4.
|
BSP_IO_PORT_04_PIN_05 | IO port 4 pin 5.
|
BSP_IO_PORT_04_PIN_06 | IO port 4 pin 6.
|
BSP_IO_PORT_04_PIN_07 | IO port 4 pin 7.
|
BSP_IO_PORT_04_PIN_08 | IO port 4 pin 8.
|
BSP_IO_PORT_04_PIN_09 | IO port 4 pin 9.
|
BSP_IO_PORT_04_PIN_10 | IO port 4 pin 10.
|
BSP_IO_PORT_04_PIN_11 | IO port 4 pin 11.
|
BSP_IO_PORT_04_PIN_12 | IO port 4 pin 12.
|
BSP_IO_PORT_04_PIN_13 | IO port 4 pin 13.
|
BSP_IO_PORT_04_PIN_14 | IO port 4 pin 14.
|
BSP_IO_PORT_04_PIN_15 | IO port 4 pin 15.
|
BSP_IO_PORT_05_PIN_00 | IO port 5 pin 0.
|
BSP_IO_PORT_05_PIN_01 | IO port 5 pin 1.
|
BSP_IO_PORT_05_PIN_02 | IO port 5 pin 2.
|
BSP_IO_PORT_05_PIN_03 | IO port 5 pin 3.
|
BSP_IO_PORT_05_PIN_04 | IO port 5 pin 4.
|
BSP_IO_PORT_05_PIN_05 | IO port 5 pin 5.
|
BSP_IO_PORT_05_PIN_06 | IO port 5 pin 6.
|
BSP_IO_PORT_05_PIN_07 | IO port 5 pin 7.
|
BSP_IO_PORT_05_PIN_08 | IO port 5 pin 8.
|
BSP_IO_PORT_05_PIN_09 | IO port 5 pin 9.
|
BSP_IO_PORT_05_PIN_10 | IO port 5 pin 10.
|
BSP_IO_PORT_05_PIN_11 | IO port 5 pin 11.
|
BSP_IO_PORT_05_PIN_12 | IO port 5 pin 12.
|
BSP_IO_PORT_05_PIN_13 | IO port 5 pin 13.
|
BSP_IO_PORT_05_PIN_14 | IO port 5 pin 14.
|
BSP_IO_PORT_05_PIN_15 | IO port 5 pin 15.
|
BSP_IO_PORT_06_PIN_00 | IO port 6 pin 0.
|
BSP_IO_PORT_06_PIN_01 | IO port 6 pin 1.
|
BSP_IO_PORT_06_PIN_02 | IO port 6 pin 2.
|
BSP_IO_PORT_06_PIN_03 | IO port 6 pin 3.
|
BSP_IO_PORT_06_PIN_04 | IO port 6 pin 4.
|
BSP_IO_PORT_06_PIN_05 | IO port 6 pin 5.
|
BSP_IO_PORT_06_PIN_06 | IO port 6 pin 6.
|
BSP_IO_PORT_06_PIN_07 | IO port 6 pin 7.
|
BSP_IO_PORT_06_PIN_08 | IO port 6 pin 8.
|
BSP_IO_PORT_06_PIN_09 | IO port 6 pin 9.
|
BSP_IO_PORT_06_PIN_10 | IO port 6 pin 10.
|
BSP_IO_PORT_06_PIN_11 | IO port 6 pin 11.
|
BSP_IO_PORT_06_PIN_12 | IO port 6 pin 12.
|
BSP_IO_PORT_06_PIN_13 | IO port 6 pin 13.
|
BSP_IO_PORT_06_PIN_14 | IO port 6 pin 14.
|
BSP_IO_PORT_06_PIN_15 | IO port 6 pin 15.
|
BSP_IO_PORT_07_PIN_00 | IO port 7 pin 0.
|
BSP_IO_PORT_07_PIN_01 | IO port 7 pin 1.
|
BSP_IO_PORT_07_PIN_02 | IO port 7 pin 2.
|
BSP_IO_PORT_07_PIN_03 | IO port 7 pin 3.
|
BSP_IO_PORT_07_PIN_04 | IO port 7 pin 4.
|
BSP_IO_PORT_07_PIN_05 | IO port 7 pin 5.
|
BSP_IO_PORT_07_PIN_06 | IO port 7 pin 6.
|
BSP_IO_PORT_07_PIN_07 | IO port 7 pin 7.
|
BSP_IO_PORT_07_PIN_08 | IO port 7 pin 8.
|
BSP_IO_PORT_07_PIN_09 | IO port 7 pin 9.
|
BSP_IO_PORT_07_PIN_10 | IO port 7 pin 10.
|
BSP_IO_PORT_07_PIN_11 | IO port 7 pin 11.
|
BSP_IO_PORT_07_PIN_12 | IO port 7 pin 12.
|
BSP_IO_PORT_07_PIN_13 | IO port 7 pin 13.
|
BSP_IO_PORT_07_PIN_14 | IO port 7 pin 14.
|
BSP_IO_PORT_07_PIN_15 | IO port 7 pin 15.
|
BSP_IO_PORT_08_PIN_00 | IO port 8 pin 0.
|
BSP_IO_PORT_08_PIN_01 | IO port 8 pin 1.
|
BSP_IO_PORT_08_PIN_02 | IO port 8 pin 2.
|
BSP_IO_PORT_08_PIN_03 | IO port 8 pin 3.
|
BSP_IO_PORT_08_PIN_04 | IO port 8 pin 4.
|
BSP_IO_PORT_08_PIN_05 | IO port 8 pin 5.
|
BSP_IO_PORT_08_PIN_06 | IO port 8 pin 6.
|
BSP_IO_PORT_08_PIN_07 | IO port 8 pin 7.
|
BSP_IO_PORT_08_PIN_08 | IO port 8 pin 8.
|
BSP_IO_PORT_08_PIN_09 | IO port 8 pin 9.
|
BSP_IO_PORT_08_PIN_10 | IO port 8 pin 10.
|
BSP_IO_PORT_08_PIN_11 | IO port 8 pin 11.
|
BSP_IO_PORT_08_PIN_12 | IO port 8 pin 12.
|
BSP_IO_PORT_08_PIN_13 | IO port 8 pin 13.
|
BSP_IO_PORT_08_PIN_14 | IO port 8 pin 14.
|
BSP_IO_PORT_08_PIN_15 | IO port 8 pin 15.
|
BSP_IO_PORT_09_PIN_00 | IO port 9 pin 0.
|
BSP_IO_PORT_09_PIN_01 | IO port 9 pin 1.
|
BSP_IO_PORT_09_PIN_02 | IO port 9 pin 2.
|
BSP_IO_PORT_09_PIN_03 | IO port 9 pin 3.
|
BSP_IO_PORT_09_PIN_04 | IO port 9 pin 4.
|
BSP_IO_PORT_09_PIN_05 | IO port 9 pin 5.
|
BSP_IO_PORT_09_PIN_06 | IO port 9 pin 6.
|
BSP_IO_PORT_09_PIN_07 | IO port 9 pin 7.
|
BSP_IO_PORT_09_PIN_08 | IO port 9 pin 8.
|
BSP_IO_PORT_09_PIN_09 | IO port 9 pin 9.
|
BSP_IO_PORT_09_PIN_10 | IO port 9 pin 10.
|
BSP_IO_PORT_09_PIN_11 | IO port 9 pin 11.
|
BSP_IO_PORT_09_PIN_12 | IO port 9 pin 12.
|
BSP_IO_PORT_09_PIN_13 | IO port 9 pin 13.
|
BSP_IO_PORT_09_PIN_14 | IO port 9 pin 14.
|
BSP_IO_PORT_09_PIN_15 | IO port 9 pin 15.
|
BSP_IO_PORT_10_PIN_00 | IO port 10 pin 0.
|
BSP_IO_PORT_10_PIN_01 | IO port 10 pin 1.
|
BSP_IO_PORT_10_PIN_02 | IO port 10 pin 2.
|
BSP_IO_PORT_10_PIN_03 | IO port 10 pin 3.
|
BSP_IO_PORT_10_PIN_04 | IO port 10 pin 4.
|
BSP_IO_PORT_10_PIN_05 | IO port 10 pin 5.
|
BSP_IO_PORT_10_PIN_06 | IO port 10 pin 6.
|
BSP_IO_PORT_10_PIN_07 | IO port 10 pin 7.
|
BSP_IO_PORT_10_PIN_08 | IO port 10 pin 8.
|
BSP_IO_PORT_10_PIN_09 | IO port 10 pin 9.
|
BSP_IO_PORT_10_PIN_10 | IO port 10 pin 10.
|
BSP_IO_PORT_10_PIN_11 | IO port 10 pin 11.
|
BSP_IO_PORT_10_PIN_12 | IO port 10 pin 12.
|
BSP_IO_PORT_10_PIN_13 | IO port 10 pin 13.
|
BSP_IO_PORT_10_PIN_14 | IO port 10 pin 14.
|
BSP_IO_PORT_10_PIN_15 | IO port 10 pin 15.
|
BSP_IO_PORT_11_PIN_00 | IO port 11 pin 0.
|
BSP_IO_PORT_11_PIN_01 | IO port 11 pin 1.
|
BSP_IO_PORT_11_PIN_02 | IO port 11 pin 2.
|
BSP_IO_PORT_11_PIN_03 | IO port 11 pin 3.
|
BSP_IO_PORT_11_PIN_04 | IO port 11 pin 4.
|
BSP_IO_PORT_11_PIN_05 | IO port 11 pin 5.
|
BSP_IO_PORT_11_PIN_06 | IO port 11 pin 6.
|
BSP_IO_PORT_11_PIN_07 | IO port 11 pin 7.
|
BSP_IO_PORT_11_PIN_08 | IO port 11 pin 8.
|
BSP_IO_PORT_11_PIN_09 | IO port 11 pin 9.
|
BSP_IO_PORT_11_PIN_10 | IO port 11 pin 10.
|
BSP_IO_PORT_11_PIN_11 | IO port 11 pin 11.
|
BSP_IO_PORT_11_PIN_12 | IO port 11 pin 12.
|
BSP_IO_PORT_11_PIN_13 | IO port 11 pin 13.
|
BSP_IO_PORT_11_PIN_14 | IO port 11 pin 14.
|
BSP_IO_PORT_11_PIN_15 | IO port 11 pin 15.
|
BSP_IO_PORT_12_PIN_00 | IO port 12 pin 0.
|
BSP_IO_PORT_12_PIN_01 | IO port 12 pin 1.
|
BSP_IO_PORT_12_PIN_02 | IO port 12 pin 2.
|
BSP_IO_PORT_12_PIN_03 | IO port 12 pin 3.
|
BSP_IO_PORT_12_PIN_04 | IO port 12 pin 4.
|
BSP_IO_PORT_12_PIN_05 | IO port 12 pin 5.
|
BSP_IO_PORT_12_PIN_06 | IO port 12 pin 6.
|
BSP_IO_PORT_12_PIN_07 | IO port 12 pin 7.
|
BSP_IO_PORT_12_PIN_08 | IO port 12 pin 8.
|
BSP_IO_PORT_12_PIN_09 | IO port 12 pin 9.
|
BSP_IO_PORT_12_PIN_10 | IO port 12 pin 10.
|
BSP_IO_PORT_12_PIN_11 | IO port 12 pin 11.
|
BSP_IO_PORT_12_PIN_12 | IO port 12 pin 12.
|
BSP_IO_PORT_12_PIN_13 | IO port 12 pin 13.
|
BSP_IO_PORT_12_PIN_14 | IO port 12 pin 14.
|
BSP_IO_PORT_12_PIN_15 | IO port 12 pin 15.
|
BSP_IO_PORT_13_PIN_00 | IO port 13 pin 0.
|
BSP_IO_PORT_13_PIN_01 | IO port 13 pin 1.
|
BSP_IO_PORT_13_PIN_02 | IO port 13 pin 2.
|
BSP_IO_PORT_13_PIN_03 | IO port 13 pin 3.
|
BSP_IO_PORT_13_PIN_04 | IO port 13 pin 4.
|
BSP_IO_PORT_13_PIN_05 | IO port 13 pin 5.
|
BSP_IO_PORT_13_PIN_06 | IO port 13 pin 6.
|
BSP_IO_PORT_13_PIN_07 | IO port 13 pin 7.
|
BSP_IO_PORT_13_PIN_08 | IO port 13 pin 8.
|
BSP_IO_PORT_13_PIN_09 | IO port 13 pin 9.
|
BSP_IO_PORT_13_PIN_10 | IO port 13 pin 10.
|
BSP_IO_PORT_13_PIN_11 | IO port 13 pin 11.
|
BSP_IO_PORT_13_PIN_12 | IO port 13 pin 12.
|
BSP_IO_PORT_13_PIN_13 | IO port 13 pin 13.
|
BSP_IO_PORT_13_PIN_14 | IO port 13 pin 14.
|
BSP_IO_PORT_13_PIN_15 | IO port 13 pin 15.
|
BSP_IO_PORT_14_PIN_00 | IO port 14 pin 0.
|
BSP_IO_PORT_14_PIN_01 | IO port 14 pin 1.
|
BSP_IO_PORT_14_PIN_02 | IO port 14 pin 2.
|
BSP_IO_PORT_14_PIN_03 | IO port 14 pin 3.
|
BSP_IO_PORT_14_PIN_04 | IO port 14 pin 4.
|
BSP_IO_PORT_14_PIN_05 | IO port 14 pin 5.
|
BSP_IO_PORT_14_PIN_06 | IO port 14 pin 6.
|
BSP_IO_PORT_14_PIN_07 | IO port 14 pin 7.
|
BSP_IO_PORT_14_PIN_08 | IO port 14 pin 8.
|
BSP_IO_PORT_14_PIN_09 | IO port 14 pin 9.
|
BSP_IO_PORT_14_PIN_10 | IO port 14 pin 10.
|
BSP_IO_PORT_14_PIN_11 | IO port 14 pin 11.
|
BSP_IO_PORT_14_PIN_12 | IO port 14 pin 12.
|
BSP_IO_PORT_14_PIN_13 | IO port 14 pin 13.
|
BSP_IO_PORT_14_PIN_14 | IO port 14 pin 14.
|
BSP_IO_PORT_14_PIN_15 | IO port 14 pin 15.
|
◆ R_BSP_PinRead()
Read the current input level of the pin.
- Parameters
-
- Return values
-
◆ R_BSP_PinWrite()
Set a pin to output and set the output level to the level provided. If PFS protection is enabled, disable PFS protection using R_BSP_PinAccessEnable() before calling this function.
- Parameters
-
[in] | pin | The pin |
[in] | level | The level |
◆ R_BSP_PinCfg()
Configure a pin. If PFS protection is enabled, disable PFS protection using R_BSP_PinAccessEnable() before calling this function.
- Parameters
-
[in] | pin | The pin |
[in] | cfg | Configuration for the pin (PmnPFS register setting) |
◆ R_BSP_PinAccessEnable()
__STATIC_INLINE void R_BSP_PinAccessEnable |
( |
void |
| ) |
|
Enable access to the PFS registers. Uses a reference counter to protect against interrupts that could occur via multiple threads or an ISR re-entering this code.
◆ R_BSP_PinAccessDisable()
__STATIC_INLINE void R_BSP_PinAccessDisable |
( |
void |
| ) |
|
Disable access to the PFS registers. Uses a reference counter to protect against interrupts that could occur via multiple threads or an ISR re-entering this code.