monoZ docs
MZ_gpio.h
Go to the documentation of this file.
1
8#ifndef MZ_GPIO_H_
9#define MZ_GPIO_H_
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14//#include "MZ_common.h"
15#include "MZ_public.h"
16#include "MZ_error_handler.h"
17
28typedef struct
29{
30 GPIO_TypeDef instruction;
32
38
39 /* GPIO Base Type */
44typedef MZ_GPIOX * MZ_GPIOX_BTYPE_PTR; /* GPIO Base Type pointer */
45
58
67mz_error_t MZ_GPIO_WritePin(MZ_GPIOX_BTYPE_PTR GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
68
77
86
94
102
110mz_error_t MZ_GPIO_Init(MZ_GPIOX_BTYPE_PTR GPIOx, MZ_GPIO_INIT_ST *GPIO_Init);
111
120
122#ifdef __cplusplus
123}
124#endif
125#endif /* MZ_UART_H_ */
void(* _mz_fp)(void *)
Definition: MZ_common.h:33
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
_mz_fp _gpio_api
use _gpio_api as monoZ function pointer
Definition: MZ_gpio.h:22
MZ_GPIOX MZ_GPIOX_BTYPE
[TODO]
Definition: MZ_gpio.h:37
MZ_GPIOX * MZ_GPIOX_BTYPE_PTR
[TODO]
Definition: MZ_gpio.h:44
monoZ Public All peripheral Configurations will send to monoZ library through this file
mz_error_t MZ_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
This function is used to set the gpio pin for External Interrupt handler.
mz_error_t MZ_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
This function is used to set the gpio pin for External callback.
mz_error_t MZ_GPIO_DeInit(MZ_GPIOX_BTYPE_PTR GPIOx, uint32_t GPIO_Pin)
This function is used for de-initilization of gpio with reset settings.
mz_error_t MZ_GPIO_TogglePin(MZ_GPIOX_BTYPE_PTR GPIOx, uint16_t GPIO_Pin)
This function is used to Set the toggling to the specific pin.
mz_error_t MZ_GPIO_LockPin(MZ_GPIOX_BTYPE_PTR, uint16_t GPIO_Pin)
This function is used to set the specific gpio pin to be locked for particular operation.
mz_error_t MZ_GPIO_Init(MZ_GPIOX_BTYPE_PTR GPIOx, MZ_GPIO_INIT_ST *GPIO_Init)
This function is used for initilization of gpio with specific settings.
mz_error_t MZ_GPIO_ReadPin(MZ_GPIOX_BTYPE_PTR, uint16_t GPIO_Pin)
This function is used to Read the specific input port Pin.
mz_error_t MZ_GPIO_WritePin(MZ_GPIOX_BTYPE_PTR GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
This function is used to Set the input/output to the specific pin.
GPIO_TypeDef instruction
Definition: MZ_gpio.h:30