Collaboration diagram for Functions: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_set_speed (app_io_type_t type, uint32_t pin, app_io_speed_t speed) |
| Set the speed of the GPIO. More... | |
| uint16_t | app_io_set_strength (app_io_type_t type, uint32_t pin, app_io_strength_t strength) |
| Set the strength of the GPIO. More... | |
| uint16_t | app_io_set_intput_type (app_io_type_t type, uint32_t pin, app_io_input_type_t input_type) |
| Set the input type of the GPIO. More... | |
| uint16_t | app_io_event_register_cb (app_io_type_t type, app_io_init_t *p_init, app_io_callback_t io_evt_cb, void *arg) |
| Initialize GPIO to interrupt mode and register interrupt callback function. More... | |
| uint16_t | app_io_event_unregister (app_io_type_t type, uint32_t pin) |
| Deinitialize GPIO to normal mode and unregister interrupt. 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_event_register_cb | ( | app_io_type_t | type, |
| app_io_init_t * | p_init, | ||
| app_io_callback_t | io_evt_cb, | ||
| void * | arg | ||
| ) |
Initialize GPIO to interrupt mode and register interrupt callback function.
| [in] | type | GPIO type, See app_io_type_t. |
| [in] | p_init | Pointer to app_io_init_t parameter which contains the configuration information for the specified GPIO. |
| [in] | io_evt_cb | Interrupt callback function. |
| [in] | arg | User parameters. |
| uint16_t app_io_event_unregister | ( | app_io_type_t | type, |
| uint32_t | pin | ||
| ) |
Deinitialize GPIO to normal mode and unregister interrupt.
| [in] | type | GPIO type, See app_io_type_t. |
| [in] | pin | The pin want to unregister. |
| 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_set_intput_type | ( | app_io_type_t | type, |
| uint32_t | pin, | ||
| app_io_input_type_t | input_type | ||
| ) |
Set the input type of the GPIO.
| [in] | type | GPIO type, See app_io_type_t. |
| [in] | pin | The pin want to toggle. |
| [in] | input_type | GPIO input type, See app_io_input_type_t. |
| uint16_t app_io_set_speed | ( | app_io_type_t | type, |
| uint32_t | pin, | ||
| app_io_speed_t | speed | ||
| ) |
Set the speed of the GPIO.
| [in] | type | GPIO type, See app_io_type_t. |
| [in] | pin | The pin want to set. |
| [in] | speed | GPIO speed type, See app_io_speed_t. |
| uint16_t app_io_set_strength | ( | app_io_type_t | type, |
| uint32_t | pin, | ||
| app_io_strength_t | strength | ||
| ) |
Set the strength of the GPIO.
| [in] | type | GPIO type, See app_io_type_t. |
| [in] | pin | The pin want to set. |
| [in] | strength | GPIO strength type, See app_io_strength_t. |
| 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. |