CC26xx Driver Library
[aux_wuc] AUX Wake Up Controller

Functions

void AUXWUCClockEnable (uint32_t ui32Clocks)
 Enable clocks for peripherals in the AUX domain. More...
 
void AUXWUCClockDisable (uint32_t ui32Clocks)
 Disable clocks for peripherals in the AUX domain. More...
 
uint32_t AUXWUCClockStatus (uint32_t ui32Clocks)
 Get the status of a clock. More...
 
static void AUXWUCClockFreqReq (uint32_t ui32ClockFreq)
 Request a high or low frequency clock source. More...
 
void AUXWUCPowerCtrl (uint32_t ui32PowerMode)
 Control the power to the AUX domain. More...
 
static void AUXWUCFreezeEnable (void)
 Freeze the AUX IOs. More...
 
static void AUXWUCFreezeDisable (void)
 Unfreeze the AUX IOs. More...
 

Detailed Description

Function Documentation

void AUXWUCClockDisable ( uint32_t  ui32Clocks)

Disable clocks for peripherals in the AUX domain.

Use this function to enable specific clocks in the AUX domain.

Parameters
ui32Clocksa bitmap of clocks to disable. Use a bitwise OR combination of the following values:
Returns
None
See also
AUXWUCClockEnable()

Definition at line 113 of file aux_wuc.c.

void AUXWUCClockEnable ( uint32_t  ui32Clocks)

Enable clocks for peripherals in the AUX domain.

Use this function to enable specific clocks in the AUX domain.

Parameters
ui32Clocksis a bitmap of clocks to enable. Use a bitwise OR combination of the following values:
Returns
None
See also
AUXWUCClockDisable()

Definition at line 64 of file aux_wuc.c.

Referenced by SysCtrlPowerEverything().

static void AUXWUCClockFreqReq ( uint32_t  ui32ClockFreq)
inlinestatic

Request a high or low frequency clock source.

Using this function it is possible to make a request to the System Control to use a high or low frequency clock as clock source for the AUX domain.

Note
A low frequency clock is always 32 kHz, while a high frequency clock is really a large span of frequencies determined by the clock source (High Frequency or Medium Frequency) and the setting for the clock divider for the AUX domain in the System Control.
Parameters
ui32ClockFreqdetermines the clock source frequency.
Returns

Definition at line 232 of file aux_wuc.h.

uint32_t AUXWUCClockStatus ( uint32_t  ui32Clocks)

Get the status of a clock.

Use this function to poll the status of a specific clock in the AUX domain.

Parameters
ui32Clocksis the clock for which to return status.
Returns
Returns the status of the clock as one of two states:

Definition at line 162 of file aux_wuc.c.

Referenced by SysCtrlPowerEverything().

static void AUXWUCFreezeDisable ( void  )
inlinestatic

Unfreeze the AUX IOs.

When restarting the AUX domain after it has entered powerdown mode, the software can regain control of the IOs by setting the IO latches as transparent.

Note
The IOs should not be unfrozen before software has restored the functionality of the IO.
Returns
None
See also
AUXWUCFreezeEnable()

Definition at line 304 of file aux_wuc.h.

static void AUXWUCFreezeEnable ( void  )
inlinestatic

Freeze the AUX IOs.

To retain the values of the output IOs during a powerdown of the AUX domain all IO latches in the AUX domain should be frozen in their current state. This ensures that software can regain control of the IOs after a powerdown without the IOs first falling back to the default values (i.e. input and pull-up).

Returns
None
See also
AUXWUCFreezeDisable()

Definition at line 279 of file aux_wuc.h.

void AUXWUCPowerCtrl ( uint32_t  ui32PowerMode)

Control the power to the AUX domain.

Use this function to set the power mode of the entire AUX domain.

Parameters
ui32PowerModecontrol the desired power mode for the AUX domain. The domain has three different power modes:
Returns
None

Definition at line 274 of file aux_wuc.c.

Referenced by TrimAfterColdResetWakeupFromShutDown().

Macro Definition Documentation

#define AUX_WUC_ADC_CLOCK   0x00000200
#define AUX_WUC_ADI_CLOCK   (AUX_WUC_MODCLKEN0_AUX_ADI4_EN)
#define AUX_WUC_AIODIO0_CLOCK   (AUX_WUC_MODCLKEN0_AIODIO0_EN)
#define AUX_WUC_AIODIO1_CLOCK   (AUX_WUC_MODCLKEN0_AIODIO1_EN)
#define AUX_WUC_ANAIF_CLOCK   (AUX_WUC_MODCLKEN0_ANAIF_EN)
#define AUX_WUC_CLOCK_HIFREQ   0x00000000

Definition at line 121 of file aux_wuc.h.

Referenced by AUXWUCClockFreqReq().

#define AUX_WUC_CLOCK_LOFREQ   0x00000001

Definition at line 122 of file aux_wuc.h.

Referenced by AUXWUCClockFreqReq().

#define AUX_WUC_CLOCK_OFF   0x00000000

Definition at line 117 of file aux_wuc.h.

Referenced by AUXWUCClockStatus().

#define AUX_WUC_CLOCK_READY   0x00000011

Definition at line 119 of file aux_wuc.h.

Referenced by AUXWUCClockStatus(), and SysCtrlPowerEverything().

#define AUX_WUC_CLOCK_UNSTABLE   0x00000001

Definition at line 118 of file aux_wuc.h.

#define AUX_WUC_MODCLK_MASK   0x000000FF

Definition at line 111 of file aux_wuc.h.

Referenced by AUXWUCClockDisable(), and AUXWUCClockEnable().

#define AUX_WUC_OSCCTRL_CLOCK   (AUX_WUC_MODCLKEN0_AUX_DDI0_OSC_EN)
#define AUX_WUC_POWER_ACTIVE   0x00000004

Definition at line 96 of file aux_wuc.h.

Referenced by AUXWUCPowerCtrl().

#define AUX_WUC_POWER_DOWN   0x00000002

Definition at line 95 of file aux_wuc.h.

Referenced by AUXWUCPowerCtrl(), and TrimAfterColdResetWakeupFromShutDown().

#define AUX_WUC_POWER_OFF   0x00000001

Definition at line 94 of file aux_wuc.h.

Referenced by AUXWUCPowerCtrl().

#define AUX_WUC_REF_CLOCK   0x00000400
#define AUX_WUC_SMPH_CLOCK   (AUX_WUC_MODCLKEN0_SMPH_EN)
#define AUX_WUC_TDC_CLOCK   0x00000100
#define AUX_WUC_TDCIF_CLOCK   (AUX_WUC_MODCLKEN0_TDC_EN)
#define AUX_WUC_TIMER_CLOCK   (AUX_WUC_MODCLKEN0_TIMER_EN)