Appiko
Functions
SDK EVAL Gpio Exported Functions

Functions

void SdkEvalM2SGpioInit (M2SGpioPin xGpio, M2SGpioMode xGpioMode)
 Configures MCU GPIO and EXTI Line for GPIOs. More...
 
void SdkEvalM2SGpioInterruptCmd (M2SGpioPin xGpio, uint8_t nPreemption, uint8_t nSubpriority, FunctionalState xNewState)
 Enables or disables the interrupt on GPIO . More...
 
FlagStatus SdkEvalGpioGetLevel (M2SGpioPin xGpio)
 Returns the level of a specified GPIO. More...
 
void SdkEvalGpioSetLevel (M2SGpioPin xGpio, FlagStatus xLevel)
 Sets the level of a specified GPIO. More...
 
void SdkEvalEnterShutdown (void)
 Puts at logic 1 the SDN pin. More...
 
void SdkEvalExitShutdown (void)
 Put at logic 0 the SDN pin. More...
 
void SdkEvalM2SGpioTriggerRising (M2SGpioPin xGpio, FunctionalState xNewState)
 Enables or disables trigger on rising edge for that GPIO . More...
 
FunctionalState SdkEvalM2SGpioGetTriggerRising (M2SGpioPin xGpio)
 To assert if the rising edge IRQ is enabled for that GPIO . More...
 
void SdkEvalM2SGpioTriggerFalling (M2SGpioPin xGpio, FunctionalState xNewState)
 Enables or disables trigger on falling edge for that GPIO . More...
 
FunctionalState SdkEvalM2SGpioGetTriggerFalling (M2SGpioPin xGpio)
 To assert if the falling edge IRQ is enabled for that GPIO . More...
 
uint16_t SdkEvalGpioGetPin (M2SGpioPin xGpio)
 Gets the GPIO_PIN of the M2SGpioPin. More...
 
void SdkEvalTcxoInit (void)
 Initialize the TCXO enable pin. More...
 
void SdkEvalTcxoOn (void)
 Puts at logic 1 the TCXO pin. More...
 
void SdkEvalTcxoOff (void)
 Put at logic 0 the TCXO pin. More...
 

Detailed Description

Function Documentation

◆ SdkEvalEnterShutdown()

void SdkEvalEnterShutdown ( void  )
Parameters
None.
Return values
None.

Definition at line 339 of file SDK_EVAL_Gpio.c.

◆ SdkEvalExitShutdown()

void SdkEvalExitShutdown ( void  )
Parameters
None.
Return values
None.

Definition at line 351 of file SDK_EVAL_Gpio.c.

◆ SdkEvalGpioGetLevel()

FlagStatus SdkEvalGpioGetLevel ( M2SGpioPin  xGpio)
Parameters
xGpioSpecifies the GPIO to be read. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
Return values
FlagStatusLevel of the GPIO. This parameter can be: SET or RESET.

Definition at line 308 of file SDK_EVAL_Gpio.c.

References vectpxM2SGpioPort.

Referenced by SdkEvalCheckShutdown().

◆ SdkEvalGpioGetPin()

uint16_t SdkEvalGpioGetPin ( M2SGpioPin  xGpio)
Parameters
xGpioM2S GPIO.
Return values
uint16_tGPIO_PIN value.

Definition at line 375 of file SDK_EVAL_Gpio.c.

◆ SdkEvalGpioSetLevel()

void SdkEvalGpioSetLevel ( M2SGpioPin  xGpio,
FlagStatus  xLevel 
)
Parameters
xGpioSpecifies the GPIO to be set. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
FlagStatusLevel of the GPIO. This parameter can be: SET or RESET.
Return values
None.

Definition at line 328 of file SDK_EVAL_Gpio.c.

References vectpxM2SGpioPort.

◆ SdkEvalM2SGpioGetTriggerFalling()

FunctionalState SdkEvalM2SGpioGetTriggerFalling ( M2SGpioPin  xGpio)
Parameters
xGpioSpecifies the GPIO. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
Return values
Specifiesthe State.
  • ENABLE: Falling trigger is enabled
  • DISABLE: Falling trigger is disabled

Definition at line 289 of file SDK_EVAL_Gpio.c.

◆ SdkEvalM2SGpioGetTriggerRising()

FunctionalState SdkEvalM2SGpioGetTriggerRising ( M2SGpioPin  xGpio)
Parameters
xGpioSpecifies the GPIO. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
Return values
Specifiesthe State.
  • ENABLE: Rising trigger is enabled
  • DISABLE: Rising trigger is disabled

Definition at line 247 of file SDK_EVAL_Gpio.c.

◆ SdkEvalM2SGpioInit()

void SdkEvalM2SGpioInit ( M2SGpioPin  xGpio,
M2SGpioMode  xGpioMode 
)
Parameters
xGpioSpecifies the GPIO to be configured. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
  • M2S_GPIO_SDN: GPIO_SDN
xGpioModeSpecifies GPIO mode. This parameter can be one of following parameters:
  • M2S_MODE_GPIO_IN: MCU GPIO will be used as simple input.
  • M2S_MODE_EXTI_IN: MCU GPIO will be connected to EXTI line with interrupt generation capability.
  • M2S_MODE_GPIO_OUT: MCU GPIO will be used as simple output.
Return values
None.

Definition at line 134 of file SDK_EVAL_Gpio.c.

◆ SdkEvalM2SGpioInterruptCmd()

void SdkEvalM2SGpioInterruptCmd ( M2SGpioPin  xGpio,
uint8_t  nPreemption,
uint8_t  nSubpriority,
FunctionalState  xNewState 
)
Parameters
xGpioSpecifies the GPIO whose priority shall be changed. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
nPreemptionSpecifies Preemption Priority.
nSubprioritySpecifies Subgroup Priority.
xNewStateSpecifies the State. This parameter can be one of following parameters:
  • ENABLE: Interrupt is enabled
  • DISABLE: Interrupt is disabled
Return values
None.

Definition at line 201 of file SDK_EVAL_Gpio.c.

◆ SdkEvalM2SGpioTriggerFalling()

void SdkEvalM2SGpioTriggerFalling ( M2SGpioPin  xGpio,
FunctionalState  xNewState 
)
Parameters
xGpioSpecifies the GPIO. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
xNewStateSpecifies the State. This parameter can be one of following parameters:
  • ENABLE: Falling trigger is enabled
  • DISABLE: Falling trigger is disabled
Return values
None.

Definition at line 269 of file SDK_EVAL_Gpio.c.

◆ SdkEvalM2SGpioTriggerRising()

void SdkEvalM2SGpioTriggerRising ( M2SGpioPin  xGpio,
FunctionalState  xNewState 
)
Parameters
xGpioSpecifies the GPIO. This parameter can be one of following parameters:
  • M2S_GPIO_0: GPIO_0
  • M2S_GPIO_1: GPIO_1
  • M2S_GPIO_2: GPIO_2
  • M2S_GPIO_3: GPIO_3
xNewStateSpecifies the State. This parameter can be one of following parameters:
  • ENABLE: Rising trigger is enabled
  • DISABLE: Rising trigger is disabled
Return values
None.

Definition at line 227 of file SDK_EVAL_Gpio.c.

◆ SdkEvalTcxoInit()

void SdkEvalTcxoInit ( void  )
Parameters
None.
Return values
None.

Definition at line 386 of file SDK_EVAL_Gpio.c.

◆ SdkEvalTcxoOff()

void SdkEvalTcxoOff ( void  )
Parameters
None.
Return values
None.

Definition at line 417 of file SDK_EVAL_Gpio.c.

◆ SdkEvalTcxoOn()

void SdkEvalTcxoOn ( void  )
Parameters
None.
Return values
None.

Definition at line 405 of file SDK_EVAL_Gpio.c.