|
CubeMon-Vue-Demo-STM32F407VGT6U
|
digital outputs with set/get and toggle functions More...
Go to the source code of this file.
Data Structures | |
| struct | digitalOutputInitData |
Typedefs | |
| typedef enum digOutputs | digOutputs |
| typedef struct digitalOutputInitData | digitalOutputInitData |
Enumerations | |
| enum | digOutputs { DO_NONE , DO_LED_ORANGE , DO_LED_RED , DO_LED_BLUE , DO_NONE } |
Functions | |
| retStatus | output_init (digOutputs output, digitalOutputInitData digital_output_init_data) |
| Digital output initialization function. More... | |
| retStatus | output_toggle (digOutputs output) |
| Toggles the output state. More... | |
| retStatus | output_set (digOutputs output_name, GPIO_PinState state) |
| Sets output state. More... | |
| dioStates | output_get_state (digOutputs output) |
| Get the current output state. More... | |
| __weak retStatus | output_set_hw_HAL (digOutputs output_name, GPIO_PinState state) |
| Sets HW output state. In case you want to implement it differently (f.e. not using HAL) More... | |
digital outputs with set/get and toggle functions
To use this library define flag LIB_DO in the lib_config.h file and create an enum in init.h file with the outputs you would like to use. You then have to initialize each input with input_init function.
| typedef enum digOutputs digOutputs |
If the library is not used (LIB_DO is not defined as symbol) this dummy enum will be created to prevent compilation errors
| enum digOutputs |
| dioStates output_get_state | ( | digOutputs | output | ) |
Get the current output state.
| [in] | output | output identification, defined by digOutputs |
| retStatus output_init | ( | digOutputs | output, |
| digitalOutputInitData | digital_output_init_data | ||
| ) |
Digital output initialization function.
| [in] | output | output identification, defined by digOutputs |
| [in] | digital_output_init_data | output initialization data digitalOutputInitData |
| retStatus output_set | ( | digOutputs | output_name, |
| GPIO_PinState | state | ||
| ) |
Sets output state.
| [in] | output_name | output identification, defined by digOutputs |
| [in] | state | state to be set |
| __weak retStatus output_set_hw_HAL | ( | digOutputs | output_name, |
| GPIO_PinState | state | ||
| ) |
Sets HW output state. In case you want to implement it differently (f.e. not using HAL)
| [in] | output_name | output identification, defined by digOutputs |
| [in] | state | state to be set |
| retStatus output_toggle | ( | digOutputs | output | ) |
Toggles the output state.
| [in] | output | output identification, defined by digOutputs |