RZ/V Flexible Software Package Documentation  Release v1.1.0
BSP I/O access

Functions

__STATIC_INLINE uint32_t R_BSP_PinRead (bsp_io_port_pin_t pin)
 
__STATIC_INLINE void R_BSP_PinWrite (bsp_io_port_pin_t pin, bsp_io_level_t level)
 
__STATIC_INLINE void R_BSP_PinAccessEnable (void)
 
__STATIC_INLINE void R_BSP_PinAccessDisable (void)
 

Detailed Description

This module provides basic read/write access to port pins.

Enumerations

enum  bsp_io_level_t
 
enum  bsp_io_direction_t
 
enum  bsp_io_port_t
 
enum  bsp_io_port_pin_t
 

Enumeration Type Documentation

◆ 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 

CD0_CLK.

BSP_IO_SD0_CMD 

CD0_CMD.

BSP_IO_SD0_RST_N 

CD0_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.

Function Documentation

◆ R_BSP_PinRead()

__STATIC_INLINE uint32_t R_BSP_PinRead ( bsp_io_port_pin_t  pin)

Read the current input level of the pin.

Parameters
[in]pinThe pin
Return values
Currentinput level

◆ R_BSP_PinWrite()

__STATIC_INLINE void R_BSP_PinWrite ( bsp_io_port_pin_t  pin,
bsp_io_level_t  level 
)

Set a pin to output and set the output level to the level provided

Parameters
[in]pinThe pin
[in]levelThe level

◆ 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.