| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
Exported Functions
BLUENRG1 Peripheral Driver » System Control

## Functions

void | SysCtrl_DeInit (void)
| De init function. More...
void | SysCtrl_PeripheralClockCmd (uint32_t PeriphClock, FunctionalState NewState)
| Enables the clock for the specified peripheral. More...
RESET_REASON_Type | SysCtrl_GetWakeupResetReason (void)
| Get the wakeup reason. More...
void | SysCtrl_WakeupFromIo (uint8_t IO, uint8_t LevelState, FunctionalState NewState)
| Configure the wakeup source from IO. More...
void | SysCtrl_SelectXO (uint8_t XOFreq)
| Enable disable the XO clock divider for the system control. More...

## Detailed Description

## Function Documentation

void SysCtrl_DeInit | ( | void |  | ) |

De init function.

Parameters

  None |

Return values

  None |

Definition at line 100 of file BlueNRG1_sysCtrl.c.

RESET_REASON_Type SysCtrl_GetWakeupResetReason | ( | void |  | ) |

Get the wakeup reason.

Parameters

  None |

Return values

  RESET_REASON_Type | wakeup reason RESET_REASON_Type

Definition at line 151 of file BlueNRG1_sysCtrl.c.

void SysCtrl_PeripheralClockCmd | ( | uint32_t | PeriphClock,
|  | FunctionalState | NewState
| ) |  |

Enables the clock for the specified peripheral.

Parameters

  PeriphClock | Peripheral to be enabled, this value can be
  - CLOCK_PERIPH_GPIO Clock of GPIO peripheral
  - CLOCK_PERIPH_NVM Clock of NVM peripheral
  - CLOCK_PERIPH_SYS_CONTROL Clock of SYSTEM CONTROL peripheral
  - CLOCK_PERIPH_UART Clock of UART peripheral
  - CLOCK_PERIPH_SPI Clock of SPI peripheral
  - CLOCK_PERIPH_WDG Clock of WATCHDOG peripheral
  - CLOCK_PERIPH_ADC Clock of ADC peripheral
  - CLOCK_PERIPH_I2C1 Clock of I2C1 peripheral
  - CLOCK_PERIPH_I2C2 Clock of I2C2 peripheral
  - CLOCK_PERIPH_MTFX1 Clock of MFTX1 peripheral
  - CLOCK_PERIPH_MTFX2 Clock of MFTX2 peripheral
  - CLOCK_PERIPH_RTC Clock of RTC peripheral
  - CLOCK_PERIPH_DMA Clock of DMA peripheral
  - CLOCK_PERIPH_RNG Clock of RNG peripheral
  NewState | New state of the peripheral clock. This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 132 of file BlueNRG1_sysCtrl.c.

void SysCtrl_SelectXO | ( | uint8_t | XOFreq | ) |

Enable disable the XO clock divider for the system control.

Parameters

  XOFreq | configure the system for the correct XO external clock used, the value can be
  - XO_32MHz enable the XO divider and expect a 32 MHz external clock.
  - XO_16MHz disable the XO divider and expect a 16 MHz external clock.

Return values

  None |

Definition at line 253 of file BlueNRG1_sysCtrl.c.

void SysCtrl_WakeupFromIo | ( | uint8_t | IO,
|  | uint8_t | LevelState,
|  | FunctionalState | NewState
| ) |  |

Configure the wakeup source from IO.

Parameters

  IO | the IO selected as wakeup source, the value can be
  - WAKEUP_ON_IO9 Wakeup source is IO9
  - WAKEUP_ON_IO10 Wakeup source is IO10
  - WAKEUP_ON_IO11 Wakeup source is IO11
  - WAKEUP_ON_IO12 Wakeup source is IO12
  - WAKEUP_ON_IO13 Wakeup source is IO13
  LevelState | select the level of the wakeup source, the value can be
  - WAKEUP_ON_HIGH_STATE Wakeup on high state
  - WAKEUP_ON_LOW_STATE Wakeup on low state
  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 223 of file BlueNRG1_sysCtrl.c.