Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Data Structures | Macros | Functions
pmu_sfrs.h File Reference

Go to the source code of this file.

Data Structures

struct  PMU_SFRS_t
 A structure to represent Special Function Registers for PMU. More...
 

Macros

#define PMU_SFRS   ((__IO PMU_SFRS_t *) (SDIO_BASE + 0x1))
 The starting address of PMU SFRS. More...
 
#define E_PMU_PMUBOR_BOUTVALUE_2V0   0
 
#define E_PMU_PMUBOR_BOUTVALUE_2V2   1
 
#define E_PMU_PMUBOR_BOUTVALUE_2V4   2
 
#define E_PMU_PMUBOR_BOUTVALUE_2V6   3
 
#define E_PMU_POWER_MODE_LDO   0
 
#define E_PMU_POWER_MODE_BATTERY   1
 

Functions

static __INLINE void f_PMU_WakeupTime (uint8_t mantissa, uint8_t exponent)
 Set wake up timer. More...
 
static __INLINE void f_PMU_HwReset (void)
 Force a hardware reset. More...
 
static __INLINE void f_PMU_SwReset (void)
 Force a software reset. More...
 
static __INLINE void f_PMU_SleepContinue (void)
 Put system in sleep mode and then continue at wakeup. More...
 
static __INLINE void f_PMU_SleepReboot (void)
 Put system in sleep mode and then reboot at wakeup. More...
 
static __INLINE void f_PMU_SetPowerMode (uint8_t mode)
 Set system power mode. More...
 
static __INLINE void f_PMU_EnableBrownOut (void)
 Enable brownout. More...
 
static __INLINE void f_PMU_DisableBrownOut (void)
 Disable brownout. More...
 
static __INLINE void f_PMU_EnableBrownOutReset (void)
 Enable brownout reset. More...
 
static __INLINE void f_PMU_DisableBrownOutReset (void)
 Disable brownout reset. More...
 
static __INLINE void f_PMU_EnableBrownOutInterrupt (void)
 Enable brownout interrupt. More...
 
static __INLINE void f_PMU_DisableBrownOutInterrupt (void)
 Disable brownout interrupt. More...
 
static __INLINE void f_PMU_SetBrownOutLevel (uint8_t level)
 Set brown out voltage level. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Macro Definition Documentation

#define E_PMU_PMUBOR_BOUTVALUE_2V0   0
#define E_PMU_PMUBOR_BOUTVALUE_2V2   1
#define E_PMU_PMUBOR_BOUTVALUE_2V4   2
#define E_PMU_PMUBOR_BOUTVALUE_2V6   3
#define E_PMU_POWER_MODE_BATTERY   1
#define E_PMU_POWER_MODE_LDO   0
#define PMU_SFRS   ((__IO PMU_SFRS_t *) (SDIO_BASE + 0x1))

The starting address of PMU SFRS.

Function Documentation

static __INLINE void f_PMU_DisableBrownOut ( void  )
static

Disable brownout.

static __INLINE void f_PMU_DisableBrownOutInterrupt ( void  )
static

Disable brownout interrupt.

static __INLINE void f_PMU_DisableBrownOutReset ( void  )
static

Disable brownout reset.

static __INLINE void f_PMU_EnableBrownOut ( void  )
static

Enable brownout.

static __INLINE void f_PMU_EnableBrownOutInterrupt ( void  )
static

Enable brownout interrupt.

static __INLINE void f_PMU_EnableBrownOutReset ( void  )
static

Enable brownout reset.

static __INLINE void f_PMU_HwReset ( void  )
static

Force a hardware reset.

static __INLINE void f_PMU_SetBrownOutLevel ( uint8_t  level)
static

Set brown out voltage level.

Parameters
levelThe enumeration of brownout voltage level.
static __INLINE void f_PMU_SetPowerMode ( uint8_t  mode)
static

Set system power mode.

Parameters
modeThe remuneration of power mode.
static __INLINE void f_PMU_SleepContinue ( void  )
static

Put system in sleep mode and then continue at wakeup.

static __INLINE void f_PMU_SleepReboot ( void  )
static

Put system in sleep mode and then reboot at wakeup.

static __INLINE void f_PMU_SwReset ( void  )
static

Force a software reset.

static __INLINE void f_PMU_WakeupTime ( uint8_t  mantissa,
uint8_t  exponent 
)
static

Set wake up timer.

Parameters
mantissaThe mantissa value of wakeup timer setting.
exponentexponential value of wakeup timer setting.