| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Enumerations | Functions
BlueNRG1_sysCtrl.h File Reference

This file contains all the functions prototypes for the System Controller firmware library. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Macros

#define | CLOCK_PERIPH_GPIO ((uint32_t)0x00000001)
#define | CLOCK_PERIPH_NVM ((uint32_t)0x00000002)
#define | CLOCK_PERIPH_SYS_CONTROL ((uint32_t)0x00000004)
#define | CLOCK_PERIPH_UART ((uint32_t)0x00000008)
#define | CLOCK_PERIPH_SPI ((uint32_t)0x00000010)
#define | CLOCK_PERIPH_WDG ((uint32_t)0x00000080)
#define | CLOCK_PERIPH_ADC ((uint32_t)0x00000100)
#define | CLOCK_PERIPH_I2C1 ((uint32_t)0x00000200)
#define | CLOCK_PERIPH_I2C2 ((uint32_t)0x00000400)
#define | CLOCK_PERIPH_MTFX1 ((uint32_t)0x00000800)
#define | CLOCK_PERIPH_MTFX2 ((uint32_t)0x00001000)
#define | CLOCK_PERIPH_RTC ((uint32_t)0x00002000)
#define | CLOCK_PERIPH_DMA ((uint32_t)0x00010000)
#define | CLOCK_PERIPH_RNG ((uint32_t)0x00020000)
#define | IS_CLOCK_PERIPH(PERIPH) ((PERIPH & 0x00033F9F) != 0)
#define | WAKEUP_ON_IO9 ((uint8_t)0x01) /* Wakeup source is IO9 */
#define | WAKEUP_ON_IO10 ((uint8_t)0x02) /* Wakeup source is IO10 */
#define | WAKEUP_ON_IO11 ((uint8_t)0x04) /* Wakeup source is IO11 */
#define | WAKEUP_ON_IO12 ((uint8_t)0x08) /* Wakeup source is IO12 */
#define | WAKEUP_ON_IO13 ((uint8_t)0x10) /* Wakeup source is IO13 */
#define | WAKEUP_ON_HIGH_STATE ((uint8_t)0) /* Wakeup on high state */
#define | WAKEUP_ON_LOW_STATE ((uint8_t)1) /* Wakeup on low state */
#define | IS_WAKEUP_ON_IO(IOS) ((IOS & 0x1F) != 0)
#define | IS_WAKEUP_ON_STATE(STATE) ( ((STATE) == WAKEUP_ON_HIGH_STATE) || ((STATE) == WAKEUP_ON_LOW_STATE) )
#define | XO_32MHZ ((uint8_t)1) /* The external clock XO used is a 32 MHz */
#define | XO_16MHZ ((uint8_t)0) /* The external clock XO used is a 16 MHz */
#define | IS_XO_FREQ(XO) ( ((XO) == XO_32MHZ) || ((XO) == XO_16MHZ) )

## Enumerations

enum | RESET_REASON_Type { RESET_NONE, RESET_SYSREQ, RESET_WDG, RESET_LOCKUP, RESET_BLE_BOR, RESET_BLE_POR, RESET_BLE_WAKEUP_FROM_IO9, RESET_BLE_WAKEUP_FROM_IO10, RESET_BLE_WAKEUP_FROM_IO11, RESET_BLE_WAKEUP_FROM_IO12, RESET_BLE_WAKEUP_FROM_IO13, RESET_BLE_WAKEUP_FROM_TIMER1,
RESET_BLE_WAKEUP_FROM_TIMER2
}
| System Reset and Wakeup Sources. More...

## 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

This file contains all the functions prototypes for the System Controller firmware library.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_sysCtrl.h.