Functions | |
uint16_t | app_io_init (app_io_type_t type, app_io_init_t *p_init) |
Initialize the APP GPIO DRIVER according to the specified parameters in the app_io_type_t and app_io_init_t. More... | |
uint16_t | app_io_deinit (app_io_type_t type, uint32_t pin) |
De-initialize the GPIOx peripheral. More... | |
app_io_pin_state_t | app_io_read_pin (app_io_type_t type, uint32_t pin) |
Read the specified input port pin.. More... | |
uint16_t | app_io_write_pin (app_io_type_t type, uint32_t pin, app_io_pin_state_t pin_state) |
Set or clear the selected data port bit. More... | |
uint16_t | app_io_toggle_pin (app_io_type_t type, uint32_t pin) |
Toggle the specified GPIO pin. More... | |
uint16_t app_io_deinit | ( | app_io_type_t | type, |
uint32_t | pin | ||
) |
De-initialize the GPIOx peripheral.
[in] | type | GPIO type, See app_io_type_t. |
[in] | pin | The pin want to De-initialization. |
uint16_t app_io_init | ( | app_io_type_t | type, |
app_io_init_t * | p_init | ||
) |
Initialize the APP GPIO DRIVER according to the specified parameters in the app_io_type_t and app_io_init_t.
[in] | type | GPIO type. |
[in] | p_init | Pointer to app_io_init_t parameter which contains the configuration information for the specified GPIO. |
app_io_pin_state_t app_io_read_pin | ( | app_io_type_t | type, |
uint32_t | pin | ||
) |
Read the specified input port pin..
[in] | type | GPIO type, See app_io_type_t. |
[in] | pin | The pin want to read. |
uint16_t app_io_toggle_pin | ( | app_io_type_t | type, |
uint32_t | pin | ||
) |
Toggle the specified GPIO pin.
[in] | type | GPIO type, See app_io_type_t. |
[in] | pin | The pin want to toggle. |
uint16_t app_io_write_pin | ( | app_io_type_t | type, |
uint32_t | pin, | ||
app_io_pin_state_t | pin_state | ||
) |
Set or clear the selected data port bit.
[in] | type | GPIO type, See app_io_type_t. |
[in] | pin | The pin want to set or clear. |
[in] | pin_state | Specifies the value to be written to the selected bit. |