IO operation functions

MSIO Read, Write, and Toggle management functions. More...

Functions

msio_pin_state_t hal_msio_read_pin (uint16_t msio_pin)
 Read the specified input port pin. More...
 
void hal_msio_write_pin (uint16_t msio_pin, msio_pin_state_t pin_state)
 Set or clear the selected data port bit. More...
 
void hal_msio_toggle_pin (uint16_t msio_pin)
 Toggle the specified MSIO pin. More...
 

Detailed Description

MSIO Read, Write, and Toggle management functions.

Function Documentation

◆ hal_msio_read_pin()

msio_pin_state_t hal_msio_read_pin ( uint16_t  msio_pin)

Read the specified input port pin.

Parameters
[in]msio_pinSpecifies the port bit to be read. This parameter can be one of the following values:
Return values
MSIO_PIN_RESETMSIO pin low level.
MSIO_PIN_SETMSIO pin high level.

◆ hal_msio_toggle_pin()

void hal_msio_toggle_pin ( uint16_t  msio_pin)

Toggle the specified MSIO pin.

Parameters
[in]msio_pinSpecifies the pin to be toggled. This parameter can be a combination of the following values:

◆ hal_msio_write_pin()

void hal_msio_write_pin ( uint16_t  msio_pin,
msio_pin_state_t  pin_state 
)

Set or clear the selected data port bit.

Parameters
[in]msio_pinSpecifies the port bit to be written. This parameter can be a combination of the following values:
[in]pin_stateSpecifies the value to be written to the selected bit. This parameter can be one of the MSIO_PinState enum values:
  • MSIO_PIN_RESET: to clear the port pin
  • MSIO_PIN_SET: to set the port pin