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_HIZ | Hi-Z.
|
BSP_IO_DIRECTION_INPUT | Input.
|
BSP_IO_DIRECTION_OUTPUT | Output (Input disable)
|
BSP_IO_DIRECTION_OUTPUT_WITH_INPUT_ENABLE | Output (Input enable)
|
◆ 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_15 | IO port 15.
|
BSP_IO_PORT_16 | IO port 16.
|
BSP_IO_PORT_17 | IO port 17.
|
BSP_IO_PORT_18 | IO port 18.
|
BSP_IO_PORT_19 | IO port 19.
|
BSP_IO_PORT_20 | IO port 20.
|
BSP_IO_PORT_21 | IO port 21.
|
BSP_IO_PORT_22 | IO port 22.
|
BSP_IO_PORT_23 | IO port 23.
|
BSP_IO_PORT_24 | IO port 24.
|
BSP_IO_PORT_25 | IO port 25.
|
BSP_IO_PORT_26 | IO port 26.
|
BSP_IO_PORT_27 | IO port 27.
|
BSP_IO_PORT_28 | IO port 28.
|
BSP_IO_PORT_29 | IO port 29.
|
BSP_IO_PORT_30 | IO port 30.
|
BSP_IO_PORT_31 | IO port 31.
|
BSP_IO_PORT_32 | IO port 32.
|
BSP_IO_PORT_33 | IO port 33.
|
BSP_IO_PORT_34 | IO port 34.
|
BSP_IO_PORT_35 | IO port 35.
|
BSP_IO_PORT_36 | IO port 36.
|
BSP_IO_PORT_37 | IO port 37.
|
BSP_IO_PORT_38 | IO port 38.
|
BSP_IO_PORT_39 | IO port 39.
|
BSP_IO_PORT_40 | IO port 40.
|
BSP_IO_PORT_41 | IO port 41.
|
BSP_IO_PORT_42 | IO port 42.
|
BSP_IO_PORT_43 | IO port 43.
|
BSP_IO_PORT_44 | IO port 44.
|
BSP_IO_PORT_45 | IO port 45.
|
BSP_IO_PORT_46 | IO port 46.
|
BSP_IO_PORT_47 | IO port 47.
|
BSP_IO_PORT_48 | IO port 48.
|
◆ 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_01_PIN_00 | IO port 1 pin 0.
|
BSP_IO_PORT_01_PIN_01 | IO port 1 pin 1.
|
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_03_PIN_00 | IO port 3 pin 0.
|
BSP_IO_PORT_03_PIN_01 | IO port 3 pin 1.
|
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_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_06_PIN_00 | IO port 6 pin 0.
|
BSP_IO_PORT_06_PIN_01 | IO port 6 pin 1.
|
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_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_09_PIN_00 | IO port 9 pin 0.
|
BSP_IO_PORT_09_PIN_01 | IO port 9 pin 1.
|
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_11_PIN_00 | IO port 11 pin 0.
|
BSP_IO_PORT_11_PIN_01 | IO port 11 pin 1.
|
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_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_14_PIN_00 | IO port 14 pin 0.
|
BSP_IO_PORT_14_PIN_01 | IO port 14 pin 1.
|
BSP_IO_PORT_15_PIN_00 | IO port 15 pin 0.
|
BSP_IO_PORT_15_PIN_01 | IO port 15 pin 1.
|
BSP_IO_PORT_16_PIN_00 | IO port 16 pin 0.
|
BSP_IO_PORT_16_PIN_01 | IO port 16 pin 1.
|
BSP_IO_PORT_17_PIN_00 | IO port 17 pin 0.
|
BSP_IO_PORT_17_PIN_01 | IO port 17 pin 1.
|
BSP_IO_PORT_17_PIN_02 | IO port 17 pin 2.
|
BSP_IO_PORT_18_PIN_00 | IO port 18 pin 0.
|
BSP_IO_PORT_18_PIN_01 | IO port 18 pin 1.
|
BSP_IO_PORT_19_PIN_00 | IO port 19 pin 0.
|
BSP_IO_PORT_19_PIN_01 | IO port 19 pin 1.
|
BSP_IO_PORT_20_PIN_00 | IO port 20 pin 0.
|
BSP_IO_PORT_20_PIN_01 | IO port 20 pin 1.
|
BSP_IO_PORT_20_PIN_02 | IO port 20 pin 2.
|
BSP_IO_PORT_21_PIN_00 | IO port 21 pin 0.
|
BSP_IO_PORT_21_PIN_01 | IO port 21 pin 1.
|
BSP_IO_PORT_22_PIN_00 | IO port 22 pin 0.
|
BSP_IO_PORT_22_PIN_01 | IO port 22 pin 1.
|
BSP_IO_PORT_23_PIN_00 | IO port 23 pin 0.
|
BSP_IO_PORT_23_PIN_01 | IO port 23 pin 1.
|
BSP_IO_PORT_24_PIN_00 | IO port 24 pin 0.
|
BSP_IO_PORT_24_PIN_01 | IO port 24 pin 1.
|
BSP_IO_PORT_25_PIN_00 | IO port 25 pin 0.
|
BSP_IO_PORT_25_PIN_01 | IO port 25 pin 1.
|
BSP_IO_PORT_26_PIN_00 | IO port 26 pin 0.
|
BSP_IO_PORT_26_PIN_01 | IO port 26 pin 1.
|
BSP_IO_PORT_27_PIN_00 | IO port 27 pin 0.
|
BSP_IO_PORT_27_PIN_01 | IO port 27 pin 1.
|
BSP_IO_PORT_28_PIN_00 | IO port 28 pin 0.
|
BSP_IO_PORT_28_PIN_01 | IO port 28 pin 1.
|
BSP_IO_PORT_29_PIN_00 | IO port 29 pin 0.
|
BSP_IO_PORT_29_PIN_01 | IO port 29 pin 1.
|
BSP_IO_PORT_30_PIN_00 | IO port 30 pin 0.
|
BSP_IO_PORT_30_PIN_01 | IO port 30 pin 1.
|
BSP_IO_PORT_31_PIN_00 | IO port 31 pin 0.
|
BSP_IO_PORT_31_PIN_01 | IO port 31 pin 1.
|
BSP_IO_PORT_32_PIN_00 | IO port 32 pin 0.
|
BSP_IO_PORT_32_PIN_01 | IO port 32 pin 1.
|
BSP_IO_PORT_33_PIN_00 | IO port 33 pin 0.
|
BSP_IO_PORT_33_PIN_01 | IO port 33 pin 1.
|
BSP_IO_PORT_34_PIN_00 | IO port 34 pin 0.
|
BSP_IO_PORT_34_PIN_01 | IO port 34 pin 1.
|
BSP_IO_PORT_35_PIN_00 | IO port 35 pin 0.
|
BSP_IO_PORT_35_PIN_01 | IO port 35 pin 1.
|
BSP_IO_PORT_36_PIN_00 | IO port 36 pin 0.
|
BSP_IO_PORT_36_PIN_01 | IO port 36 pin 1.
|
BSP_IO_PORT_37_PIN_00 | IO port 37 pin 0.
|
BSP_IO_PORT_37_PIN_01 | IO port 37 pin 1.
|
BSP_IO_PORT_37_PIN_02 | IO port 37 pin 2.
|
BSP_IO_PORT_38_PIN_00 | IO port 38 pin 0.
|
BSP_IO_PORT_38_PIN_01 | IO port 38 pin 1.
|
BSP_IO_PORT_39_PIN_00 | IO port 39 pin 0.
|
BSP_IO_PORT_39_PIN_01 | IO port 39 pin 1.
|
BSP_IO_PORT_39_PIN_02 | IO port 39 pin 2.
|
BSP_IO_PORT_40_PIN_00 | IO port 40 pin 0.
|
BSP_IO_PORT_40_PIN_01 | IO port 40 pin 1.
|
BSP_IO_PORT_40_PIN_02 | IO port 40 pin 2.
|
BSP_IO_PORT_41_PIN_00 | IO port 41 pin 0.
|
BSP_IO_PORT_41_PIN_01 | IO port 41 pin 1.
|
BSP_IO_PORT_42_PIN_00 | IO port 42 pin 0.
|
BSP_IO_PORT_42_PIN_01 | IO port 42 pin 1.
|
BSP_IO_PORT_42_PIN_02 | IO port 42 pin 2.
|
BSP_IO_PORT_42_PIN_03 | IO port 42 pin 3.
|
BSP_IO_PORT_42_PIN_04 | IO port 42 pin 4.
|
BSP_IO_PORT_43_PIN_00 | IO port 43 pin 0.
|
BSP_IO_PORT_43_PIN_01 | IO port 43 pin 1.
|
BSP_IO_PORT_43_PIN_02 | IO port 43 pin 2.
|
BSP_IO_PORT_43_PIN_03 | IO port 43 pin 3.
|
BSP_IO_PORT_44_PIN_00 | IO port 44 pin 0.
|
BSP_IO_PORT_44_PIN_01 | IO port 44 pin 1.
|
BSP_IO_PORT_44_PIN_02 | IO port 44 pin 2.
|
BSP_IO_PORT_44_PIN_03 | IO port 44 pin 3.
|
BSP_IO_PORT_45_PIN_00 | IO port 45 pin 0.
|
BSP_IO_PORT_45_PIN_01 | IO port 45 pin 1.
|
BSP_IO_PORT_45_PIN_02 | IO port 45 pin 2.
|
BSP_IO_PORT_45_PIN_03 | IO port 45 pin 3.
|
BSP_IO_PORT_46_PIN_00 | IO port 46 pin 0.
|
BSP_IO_PORT_46_PIN_01 | IO port 46 pin 1.
|
BSP_IO_PORT_46_PIN_02 | IO port 46 pin 2.
|
BSP_IO_PORT_46_PIN_03 | IO port 46 pin 3.
|
BSP_IO_PORT_47_PIN_00 | IO port 47 pin 0.
|
BSP_IO_PORT_47_PIN_01 | IO port 47 pin 1.
|
BSP_IO_PORT_47_PIN_02 | IO port 47 pin 2.
|
BSP_IO_PORT_47_PIN_03 | IO port 47 pin 3.
|
BSP_IO_PORT_48_PIN_00 | IO port 48 pin 0.
|
BSP_IO_PORT_48_PIN_01 | IO port 48 pin 1.
|
BSP_IO_PORT_48_PIN_02 | IO port 48 pin 2.
|
BSP_IO_PORT_48_PIN_03 | IO port 48 pin 3.
|
BSP_IO_PORT_48_PIN_04 | IO port 48 pin 4.
|
BSP_IO_NMI | NMI.
|
BSP_IO_TMS_SWDIO | TMS_SWDIO.
|
BSP_IO_TDO | TDO.
|
BSP_IO_AUDIO_CLK1 | AUDIO_CLK1.
|
BSP_IO_AUDIO_CLK2 | AUDIO_CLK2.
|
BSP_IO_SD0_CLK | SD0_CLK.
|
BSP_IO_SD0_CMD | SD0_CMD.
|
BSP_IO_SD0_RST_N | SD0_RST_N.
|
BSP_IO_SD0_DATA0 | SD0_DATA0.
|
BSP_IO_SD0_DATA1 | SD0_DATA1.
|
BSP_IO_SD0_DATA2 | SD0_DATA2.
|
BSP_IO_SD0_DATA3 | SD0_DATA3.
|
BSP_IO_SD0_DATA4 | SD0_DATA4.
|
BSP_IO_SD0_DATA5 | SD0_DATA5.
|
BSP_IO_SD0_DATA6 | SD0_DATA6.
|
BSP_IO_SD0_DATA7 | SD0_DATA7.
|
BSP_IO_SD1_CLK | SD1_CLK.
|
BSP_IO_SD1_CMD | SD1_CMD.
|
BSP_IO_SD1_DATA0 | SD1_DATA0.
|
BSP_IO_SD1_DATA1 | SD1_DATA1.
|
BSP_IO_SD1_DATA2 | SD1_DATA2.
|
BSP_IO_SD1_DATA3 | SD1_DATA3.
|
BSP_IO_QSPI0_SPCLK | QSPI0_SPCLK.
|
BSP_IO_QSPI0_IO0 | QSPI0_IO0.
|
BSP_IO_QSPI0_IO1 | QSPI0_IO1.
|
BSP_IO_QSPI0_IO2 | QSPI0_IO2.
|
BSP_IO_QSPI0_IO3 | QSPI0_IO3.
|
BSP_IO_QSPI0_SSL | QSPI0_SSL.
|
BSP_IO_QSPI1_SPCLK | QSPI1_SPCLK.
|
BSP_IO_QSPI1_IO0 | QSPI1_IO0.
|
BSP_IO_QSPI1_IO1 | QSPI1_IO1.
|
BSP_IO_QSPI1_IO2 | QSPI1_IO2.
|
BSP_IO_QSPI1_IO3 | QSPI1_IO3.
|
BSP_IO_QSPI1_SSL | QSPI1_SSL.
|
BSP_IO_QSPI_RESET_N | QSPI_RESET_N.
|
BSP_IO_QSPI_WP_N | QSPI_WP_N.
|
BSP_IO_QSPI_INT_N | QSPI_INT_N.
|
BSP_IO_WDTOVF_PERROUT_N | WDTOVF_PERROUT_N.
|
BSP_IO_RIIC0_SDA | RIIC0_SDA.
|
BSP_IO_RIIC0_SCL | RIIC0_SCL.
|
BSP_IO_RIIC1_SDA | RIIC1_SDA.
|
BSP_IO_RIIC1_SCL | RIIC1_SCL.
|
◆ bsp_sd_channel_t
Superset of SD channels.
Enumerator |
---|
BSP_SD_CHANNEL_0 | Used to select SD channel 0.
|
BSP_SD_CHANNEL_1 | Used to select SD channel 1.
|
◆ bsp_ethernet_channel_t
Superset of Ethernet channels.
Enumerator |
---|
BSP_ETHERNET_CHANNEL_0 | Used to select Ethernet channel 0.
|
BSP_ETHERNET_CHANNEL_1 | Used to select Ethernet channel 1.
|
◆ bsp_sd_voltage_t
Superset of SD voltages.
Enumerator |
---|
BSP_SD_VOLTAGE_33 | SD voltage set to 3.3V.
|
BSP_SD_VOLTAGE_18 | SD voltage set to 1.8V.
|
◆ bsp_qspi_voltage_t
Superset of QSPI voltages.
Enumerator |
---|
BSP_QSPI_VOLTAGE_33 | QSPI voltage set to 3.3V.
|
BSP_QSPI_VOLTAGE_18 | QSPI voltage set to 1.8V.
|
◆ bsp_xspi_voltage_t
Superset of XSPI voltages.
Enumerator |
---|
BSP_XSPI_VOLTAGE_33 | XSPI voltage set to 3.3V.
|
BSP_XSPI_VOLTAGE_18 | XSPI voltage set to 1.8V.
|
BSP_XSPI_VOLTAGE_25 | XSPI voltage set to 2.5V.
|
◆ bsp_ethernet_voltage_t
Superset of Ethernet voltages.
Enumerator |
---|
BSP_ETHERNET_VOLTAGE_33 | Ethernet voltage set to 3.3V.
|
BSP_ETHERNET_VOLTAGE_18 | Ethernet voltage set to 1.8V.
|
BSP_ETHERNET_VOLTAGE_25 | Ethernet voltage set to 2.5V.
|
◆ bsp_i3c_voltage_t
Superset of I3C voltages.
Enumerator |
---|
BSP_I3C_VOLTAGE_18 | I3C voltage set to 1.8V.
|
BSP_I3C_VOLTAGE_12 | I3C voltage set to 1.2V.
|
◆ bsp_ethernet_mode_t
Superset of Ethernet PHY modes.
Enumerator |
---|
BSP_ETHERNET_MODE_RMII | Ethernet PHY mode set to RMII.
|
BSP_ETHERNET_MODE_MII | Ethernet PHY mode set to MII.
|
◆ bsp_i3c_mode_t
Superset of Standby modes for I3C.
Enumerator |
---|
BSP_I3C_MODE_STB | Standby mode set to Standby mode.
|
BSP_I3C_MODE_NOR | Standby mode set to Normal mode.
|
◆ bsp_bypass_oscillator_t
Superset of oscillator for bypass mode.
Enumerator |
---|
BSP_BYPASS_OSCILLATOR_RTC | Oscillator set to RTC.
|
BSP_BYPASS_OSCILLATOR_AUDIO | Oscillator set to Audio.
|
BSP_BYPASS_OSCILLATOR_EMCLK | Oscillator set to EMCLK.
|
◆ bsp_bypass_mode_t
Superset of bypass modes.
Enumerator |
---|
BSP_BYPASS_MODE_CRYSTAL_OSC | Bypass mode set to Crystal oscillator.
|
BSP_BYPASS_MODE_EXTERNAL_CLK | Bypass mode set to External clock receive.
|
BSP_BYPASS_MODE_POWER_DOWN | Bypass mode set to Power-down.
|
◆ bsp_bypass_freq_range_t
Superset of frequency range for bypass mode.
Enumerator |
---|
BSP_BYPASS_FREQ_RANGE_1MHZ | Frequency range set to 32KHz to 1MHz.
|
BSP_BYPASS_FREQ_RANGE_12MHZ | Frequency range set to 1.1MHz to 12MHz.
|
BSP_BYPASS_FREQ_RANGE_24MHZ | Frequency range set to 12.1MHz to 24MHz.
|
BSP_BYPASS_FREQ_RANGE_48MHZ | Frequency range set to 24.1MHz to 48MHz.
|
◆ 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
- Parameters
-
[in] | pin | The pin |
[in] | level | The level |
◆ R_BSP_PinAccessEnable()
__STATIC_INLINE void R_BSP_PinAccessEnable |
( |
void |
| ) |
|
Enable access to the PFC 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 PFC registers. Uses a reference counter to protect against interrupts that could occur via multiple threads or an ISR re-entering this code.
◆ R_BSP_OENAccessEnable()
__STATIC_INLINE void R_BSP_OENAccessEnable |
( |
void |
| ) |
|
Enable access to the OEN registers.
◆ R_BSP_OENAccessDisable()
__STATIC_INLINE void R_BSP_OENAccessDisable |
( |
void |
| ) |
|
Disable access to the OEN registers.
◆ R_BSP_EthernetModeCfg()
Configures Ethernet channel PHY mode.
◆ R_BSP_SDVoltageModeCfg()
Configures SD channel voltage mode.
◆ R_BSP_QSPIVoltageModeCfg()
Configures QSPI channel voltage mode.
◆ R_BSP_XSPIVoltageModeCfg()
Configures XSPI channel voltage mode.
◆ R_BSP_EthernetVoltageModeCfg()
Configures Ethernet channel voltage mode.
◆ R_BSP_I3CControlCfg()
◆ R_BSP_BypassModeCfg()
Configures bypass mode for RTC, Audio and EMCLK oscillator.
◆ R_BSP_XSPIOutputEnableCfg()
__STATIC_INLINE void R_BSP_XSPIOutputEnableCfg |
( |
void |
| ) |
|
Configures XSPI output Enable.