|
MotorWare f2806x Driver API Documentation
|
Data Structures | |
| struct | _PWR_Obj_ |
| Defines the power (PWR) object. More... | |
Macros | |
| #define | PWR_BASE_ADDR (0x00000985) |
| Defines the base address of the power (PWR) registers. More... | |
| #define | PWR_BORCFG_BORENZ_BITS (1 << 0) |
| Defines the location of the BORENZ bits in the BORCFG register. More... | |
| #define | PWR_LPMCR0_LPM_BITS (3 << 0) |
| Defines the location of the LPM bits in the LPMCR0 register. More... | |
| #define | PWR_LPMCR0_QUALSTDBY_BITS (63 << 2) |
| Defines the location of the QUALSTDBY bits in the LPMCR0 register. More... | |
| #define | PWR_LPMCR0_WDINTE_BITS (1 << 15) |
| Defines the location of the WDINTE bits in the LPMCR0 register. More... | |
Typedefs | |
| typedef struct _PWR_Obj_ | PWR_Obj |
| Defines the power (PWR) object. More... | |
| typedef struct _PWR_Obj_ * | PWR_Handle |
| Defines the power (PWR) handle. More... | |
Functions | |
| void | PWR_disableBrownOutReset (PWR_Handle pwrHandle) |
| Disables the brownout reset functions. More... | |
| void | PWR_disableWatchDogInt (PWR_Handle pwrHandle) |
| Disables the watchdog interrupt. More... | |
| void | PWR_enableBrownOutReset (PWR_Handle pwrHandle) |
| Enables the brownout reset functions. More... | |
| void | PWR_enableWatchDogInt (PWR_Handle pwrHandle) |
| Enables the watchdog interrupt. More... | |
| PWR_Handle | PWR_init (void *pMemory, const size_t numBytes) |
| Initializes the power (PWR) object handle. More... | |
| void | PWR_setLowPowerMode (PWR_Handle pwrHandle, const PWR_LowPowerMode_e lowPowerMode) |
| Sets the low power mode. More... | |
| void | PWR_setNumStandByClocks (PWR_Handle pwrHandle, const PWR_NumStandByClocks_e numClkCycles) |
| Sets the number of standby clock cycles. More... | |
| struct _PWR_Obj_ |
| #define PWR_BASE_ADDR (0x00000985) |
| #define PWR_BORCFG_BORENZ_BITS (1 << 0) |
Defines the location of the BORENZ bits in the BORCFG register.
Definition at line 73 of file pwr.h.
Referenced by PWR_disableBrownOutReset(), and PWR_enableBrownOutReset().
| #define PWR_LPMCR0_LPM_BITS (3 << 0) |
Defines the location of the LPM bits in the LPMCR0 register.
Definition at line 78 of file pwr.h.
Referenced by PWR_setLowPowerMode().
| #define PWR_LPMCR0_QUALSTDBY_BITS (63 << 2) |
Defines the location of the QUALSTDBY bits in the LPMCR0 register.
Definition at line 82 of file pwr.h.
Referenced by PWR_setNumStandByClocks().
| #define PWR_LPMCR0_WDINTE_BITS (1 << 15) |
Defines the location of the WDINTE bits in the LPMCR0 register.
Definition at line 86 of file pwr.h.
Referenced by PWR_disableWatchDogInt(), and PWR_enableWatchDogInt().
| typedef struct _PWR_Obj_* PWR_Handle |
| enum PWR_LowPowerMode_e |
Enumeration to define the power (PWR) number of standby clock cycles.
| void PWR_disableBrownOutReset | ( | PWR_Handle | pwrHandle | ) |
Disables the brownout reset functions.
| [in] | pwrHandle | The power (PWR) object handle |
Definition at line 57 of file pwr.c.
References _PWR_Obj_::BORCFG, and PWR_BORCFG_BORENZ_BITS.
| void PWR_disableWatchDogInt | ( | PWR_Handle | pwrHandle | ) |
Disables the watchdog interrupt.
| [in] | pwrHandle | The power (PWR) object handle |
Definition at line 69 of file pwr.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWR_Obj_::LPMCR0, and PWR_LPMCR0_WDINTE_BITS.
| void PWR_enableBrownOutReset | ( | PWR_Handle | pwrHandle | ) |
Enables the brownout reset functions.
| [in] | pwrHandle | The power (PWR) object handle |
Definition at line 85 of file pwr.c.
References _PWR_Obj_::BORCFG, and PWR_BORCFG_BORENZ_BITS.
| void PWR_enableWatchDogInt | ( | PWR_Handle | pwrHandle | ) |
Enables the watchdog interrupt.
| [in] | pwrHandle | The power (PWR) object handle |
Definition at line 97 of file pwr.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWR_Obj_::LPMCR0, and PWR_LPMCR0_WDINTE_BITS.
| PWR_Handle PWR_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
| void PWR_setLowPowerMode | ( | PWR_Handle | pwrHandle, |
| const PWR_LowPowerMode_e | lowPowerMode | ||
| ) |
Sets the low power mode.
| [in] | pwrHandle | The power (PWR) object handle |
| [in] | lowPowerMode | The low power mode |
Definition at line 128 of file pwr.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWR_Obj_::LPMCR0, and PWR_LPMCR0_LPM_BITS.
| void PWR_setNumStandByClocks | ( | PWR_Handle | pwrHandle, |
| const PWR_NumStandByClocks_e | numClkCycles | ||
| ) |
Sets the number of standby clock cycles.
| [in] | pwrHandle | The power (PWR) object handle |
| [in] | numClkCycles | The number of standby clock cycles |
Definition at line 148 of file pwr.c.
References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWR_Obj_::LPMCR0, and PWR_LPMCR0_QUALSTDBY_BITS.
1.8.9.1