44 #ifndef __SDK_EVAL_GPIO_H 45 #define __SDK_EVAL_GPIO_H 77 #define M2S_GPIO_NUMBER 5 93 #define IS_M2S_GPIO_PIN(PIN) (((PIN) == M2S_GPIO_0) || \ 94 ((PIN) == M2S_GPIO_1) || \ 95 ((PIN) == M2S_GPIO_2) || \ 96 ((PIN) == M2S_GPIO_3) || \ 97 ((PIN) == M2S_GPIO_SDN)) 111 #define IS_M2S_GPIO_MODE(MODE) (((MODE) == M2S_MODE_GPIO_IN) || \ 112 ((MODE) == M2S_MODE_EXTI_IN) || \ 113 ((MODE) == M2S_MODE_GPIO_OUT)) FlagStatus SdkEvalGpioGetLevel(M2SGpioPin xGpio)
Returns the level of a specified GPIO.
void SdkEvalM2SGpioInterruptCmd(M2SGpioPin xGpio, uint8_t nPreemption, uint8_t nSubpriority, FunctionalState xNewState)
Enables or disables the interrupt on GPIO .
M2SGpioPin
MCU GPIO pin enumeration for GPIO.
FunctionalState SdkEvalM2SGpioGetTriggerFalling(M2SGpioPin xGpio)
To assert if the falling edge IRQ is enabled for that GPIO .
M2SGpioMode
MCU GPIO pin working mode for GPIO.
uint16_t SdkEvalGpioGetPin(M2SGpioPin xGpio)
Gets the GPIO_PIN of the M2SGpioPin.
FunctionalState SdkEvalM2SGpioGetTriggerRising(M2SGpioPin xGpio)
To assert if the rising edge IRQ is enabled for that GPIO .
void SdkEvalGpioSetLevel(M2SGpioPin xGpio, FlagStatus xLevel)
Sets the level of a specified GPIO.
void SdkEvalM2SGpioTriggerFalling(M2SGpioPin xGpio, FunctionalState xNewState)
Enables or disables trigger on falling edge for that GPIO .
void SdkEvalTcxoOff(void)
Put at logic 0 the TCXO pin.
void SdkEvalExitShutdown(void)
Put at logic 0 the SDN pin.
void SdkEvalTcxoInit(void)
Initialize the TCXO enable pin.
void SdkEvalTcxoOn(void)
Puts at logic 1 the TCXO pin.
void SdkEvalM2SGpioInit(M2SGpioPin xGpio, M2SGpioMode xGpioMode)
Configures MCU GPIO and EXTI Line for GPIOs.
void SdkEvalEnterShutdown(void)
Puts at logic 1 the SDN pin.
void SdkEvalM2SGpioTriggerRising(M2SGpioPin xGpio, FunctionalState xNewState)
Enables or disables trigger on rising edge for that GPIO .