Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Typedefs | Functions | Variables
pmu_device.c File Reference
#include "pmu_device.h"

Typedefs

typedef void(* pmu_cb_func_t) (void)
 

Functions

static void set_brownout_threshold (uint32_t volt)
 
void PMU_devSleepLowPwr (PMU_WAKEUP_TIME_t time)
 Sleep in Low power mode then Continue. More...
 
void PMU_devSleepLowPwrReboot (PMU_WAKEUP_TIME_t time)
 Sleep in Low power mode and Reboot. More...
 
void PMU_devBrownOutInit (PMU_BROWNOUT_MODE_t mode, uint32_t volt, void *cb)
 Initialize brownout settings. More...
 
void PMU_devSetPowerModeBattery (void)
 Set system power to battery mode. More...
 
void PMU_devSetPowerModeLDO (void)
 Set system power to LDO mode. More...
 
void BrownOut_Handler (void)
 

Variables

pmu_cb_func_t brownout_cb = NULL
 

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.

Typedef Documentation

typedef void(* pmu_cb_func_t) (void)

Function Documentation

void BrownOut_Handler ( void  )
void PMU_devBrownOutInit ( PMU_BROWNOUT_MODE_t  brown,
uint32_t  volt,
void *  cb 
)

Initialize brownout settings.

Parameters
brownThe enumeration of brownout mode.
voltThe brownout voltage.
cbThe pointer to the call back function for brown interrupt.
void PMU_devSetPowerModeBattery ( void  )

Set system power to battery mode.

void PMU_devSetPowerModeLDO ( void  )

Set system power to LDO mode.

void PMU_devSleepLowPwr ( PMU_WAKEUP_TIME_t  time)

Sleep in Low power mode then Continue.

Parameters
timeThe enumeration of sleep time.
Returns
None This function puts the system in low power mode and then sleep for the time defined, then wake up and continue to run. This function can only be used for the hardware which is configured to support low power mode. Need to be very cautious to use this function to avoid of entering a deep sleep mode unrecoverable.
void PMU_devSleepLowPwrReboot ( PMU_WAKEUP_TIME_t  time)

Sleep in Low power mode and Reboot.

Parameters
timeThe enumeration of sleep time
Returns
None This function puts the system in low power mode and then sleep for the time defined, then reboot when the timer expires. This function can only be used for the hardware which is configured to support low power mode. Need to be very cautious to use this function to avoid of entering a deep sleep mode unrecoverable.
static void set_brownout_threshold ( uint32_t  volt)
static

Variable Documentation

pmu_cb_func_t brownout_cb = NULL