monoZ docs
GPIO

-For monoZ GPIO refer MZ_gpio.h file. More...

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
mz_error_t MZ_GPIO_EXTI_IRQHandler (uint16_t GPIO_Pin)
 This function is used to set the gpio pin for External Interrupt handler. More...
 
mz_error_t MZ_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
 This function is used to set the gpio pin for External callback. More...
 
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. More...
 
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. More...
 

Detailed Description

-For monoZ GPIO refer MZ_gpio.h file.

Function Documentation

◆ MZ_GPIO_ReadPin()

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.

Parameters
MZ_GPIOX_BTYPE_PTR
GPIO_Pinuint16_t
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_WritePin()

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.

Parameters
GPIOxMZ_GPIOX_BTYPE_PTR
GPIO_Pinuint16_t
PinStateGPIO_PinState
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_TogglePin()

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.

Parameters
GPIOxMZ_GPIOX_BTYPE_PTR
GPIO_Pinuint16_t
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_LockPin()

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.

Parameters
MZ_GPIOX_BTYPE_PTR
GPIO_Pinuint16_t
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_EXTI_IRQHandler()

mz_error_t MZ_GPIO_EXTI_IRQHandler ( uint16_t  GPIO_Pin)

This function is used to set the gpio pin for External Interrupt handler.

Parameters
GPIO_Pinuint16_t
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_EXTI_Callback()

mz_error_t MZ_GPIO_EXTI_Callback ( uint16_t  GPIO_Pin)

This function is used to set the gpio pin for External callback.

Parameters
GPIO_Pinuint16_t
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_Init()

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.

Parameters
GPIOxMZ_GPIOX_BTYPE_PTR
GPIO_Init*MZ_GPIO_INIT_ST
Returns
MZ_OK/MZ_FAIL

◆ MZ_GPIO_DeInit()

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.

Parameters
GPIOxMZ_GPIOX_BTYPE_PTR
GPIO_Pinuint32_t
Returns
MZ_OK/MZ_FAIL