| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
SDK EVAL Button Public Functions
SDK EVAL BlueNRG1 » SDK EVAL Button

## Functions

void | SdkEvalPushButtonInit (SdkEvalButton xButton)
| Configures Buttons. More...
void | SdkEvalPushButtonIrq (SdkEvalButton xButton, SdkEvalButtonIrq xButtonIrq)
| Configures buttons IRQ mode. More...
FlagStatus | SdkEvalPushButtonGetState (SdkEvalButton xButton)
| Returns the selected Button state. More...
FlagStatus | SdkEvalPushButtonGetITPendingBit (SdkEvalButton xButton)
| Get the pending bit state. More...
void | SdkEvalPushButtonClearITPendingBit (SdkEvalButton xButton)
| Clear the pending bit state. More...

## Detailed Description

## Function Documentation

void SdkEvalPushButtonClearITPendingBit | ( | SdkEvalButton | xButton | ) |

Clear the pending bit state.

Parameters

  xButton | Specifies the Button to be configured, SdkEvalButton This parameter can be one of following parameters:
  - BUTTON_1: Push1 button
  - BUTTON_2: Push2 button

Return values

  None |

Definition at line 211 of file SDK_EVAL_Button.c.

FlagStatus SdkEvalPushButtonGetITPendingBit | ( | SdkEvalButton | xButton | ) |

Get the pending bit state.

Parameters

  xButton | Specifies the Button to be configured, SdkEvalButton This parameter can be one of following parameters:
  - BUTTON_1: Push1 button
  - BUTTON_2: Push2 button

Return values

  FlagStatus | error status of the button FlagStatus This parameter can be: SET or RESET.

Definition at line 197 of file SDK_EVAL_Button.c.

FlagStatus SdkEvalPushButtonGetState | ( | SdkEvalButton | xButton | ) |

Returns the selected Button state.

Parameters

  xButton | Specifies the Button to be configured, SdkEvalButton This parameter can be one of following parameters:
  - BUTTON_1: Push1 button
  - BUTTON_2: Push2 button

Return values

  FlagStatus | error status of the button FlagStatus This parameter can be: SET or RESET.

Definition at line 179 of file SDK_EVAL_Button.c.

void SdkEvalPushButtonInit | ( | SdkEvalButton | xButton | ) |

Configures Buttons.

Parameters

  xButton | Specifies the Button to be configured, SdkEvalButton This parameter can be one of following parameters:
  - BUTTON_1: Push1 button
  - BUTTON_2: Push2 button

Return values

  None. |

Definition at line 115 of file SDK_EVAL_Button.c.

void SdkEvalPushButtonIrq | ( | SdkEvalButton | xButton,
|  | SdkEvalButtonIrq | xButtonIrq
| ) |  |

Configures buttons IRQ mode.

Parameters

  xButton | Specifies the Button to be configured, SdkEvalButton This parameter can be one of following parameters:
  - BUTTON_1: Push1 button
  - BUTTON_2: Push2 button
  xButton | Specifies the IRQ mode to be configured, SdkEvalButtonIrq This parameter can be one of following parameters:
  - IRQ_ON_RISING_EDGE: IRQ on rising edge
  - IRQ_ON_FALLING_EDGE: IRQ on falling edge
  - IRQ_ON_BOTH_EDGE: IRQ on both edges

Return values

  None. |

Definition at line 145 of file SDK_EVAL_Button.c.