#include "inc/hw_types.h"
#include "driverlib/5xx_6xx/debug.h"
#include "driverlib/5xx_6xx/ldoPwr.h"
#include "deprecated/CCS/msp430xgeneric.h"
Functions | |
void | LDOPWR_unLockConfiguration (unsigned int baseAddress) |
void | LDOPWR_lockConfiguration (unsigned int baseAddress) |
void | LDOPWR_enablePort_U_inputs (unsigned int baseAddress) |
void | LDOPWR_disablePort_U_inputs (unsigned int baseAddress) |
void | LDOPWR_enablePort_U_outputs (unsigned int baseAddress) |
void | LDOPWR_disablePort_U_outputs (unsigned int baseAddress) |
unsigned char | LDOPWR_getPort_U1_inputData (unsigned int baseAddress) |
unsigned char | LDOPWR_getPort_U0_inputData (unsigned int baseAddress) |
unsigned char | LDOPWR_getPort_U1_outputData (unsigned int baseAddress) |
unsigned char | LDOPWR_getPort_U0_outputData (unsigned int baseAddress) |
void | LDOPWR_setPort_U1_outputData (unsigned int baseAddress, unsigned char value) |
void | LDOPWR_setPort_U0_outputData (unsigned int baseAddress, unsigned char value) |
void | LDOPWR_togglePort_U1_outputData (unsigned int baseAddress) |
void | LDOPWR_togglePort_U0_outputData (unsigned int baseAddress) |
void | LDOPWR_enableInterrupt (unsigned int baseAddress, unsigned int mask) |
void | LDOPWR_disableInterrupt (unsigned int baseAddress, unsigned int mask) |
void | LDOPWR_enable (unsigned int baseAddress) |
void | LDOPWR_disable (unsigned int baseAddress) |
unsigned char | LDOPWR_getInterruptStatus (unsigned int baseAddress, unsigned int mask) |
void | LDOPWR_clearInterruptStatus (unsigned int baseAddress, unsigned int mask) |
unsigned char | LDOPWR_isLDOInputValid (unsigned int baseAddress) |
void | LDOPWR_enableOverloadAutoOff (unsigned int baseAddress) |
void | LDOPWR_disableOverloadAutoOff (unsigned int baseAddress) |
unsigned char | LDOPWR_getOverloadAutoOffStatus (unsigned int baseAddress) |
void LDOPWR_unLockConfiguration | ( | unsigned int | baseAddress | ) |
Unlocks the configuration registers and enables write access
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOKEYPID
References HWREG.
void LDOPWR_lockConfiguration | ( | unsigned int | baseAddress | ) |
Locks the configuration registers and disables write access
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOKEYPID
References HWREG.
void LDOPWR_enablePort_U_inputs | ( | unsigned int | baseAddress | ) |
Enables Port U inputs
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
void LDOPWR_disablePort_U_inputs | ( | unsigned int | baseAddress | ) |
Disables Port U inputs
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
void LDOPWR_enablePort_U_outputs | ( | unsigned int | baseAddress | ) |
Enables Port U outputs
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
void LDOPWR_disablePort_U_outputs | ( | unsigned int | baseAddress | ) |
Disables Port U inputs
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
unsigned char LDOPWR_getPort_U1_inputData | ( | unsigned int | baseAddress | ) |
Returns PU.1 input data
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.
unsigned char LDOPWR_getPort_U0_inputData | ( | unsigned int | baseAddress | ) |
Returns PU.0 input data
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.
unsigned char LDOPWR_getPort_U1_outputData | ( | unsigned int | baseAddress | ) |
Returns PU.1 output data
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.
unsigned char LDOPWR_getPort_U0_outputData | ( | unsigned int | baseAddress | ) |
Returns PU.0 output data
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.
void LDOPWR_setPort_U1_outputData | ( | unsigned int | baseAddress, |
unsigned char | value | ||
) |
Sets PU.1 output data
baseAddress | is the base address of the LDO-PWR module. |
value. | Valid values are LDOPWR_PORTU_PIN_HIGH LDOPWR_PORTU_PIN_LOW |
Modified register is PUCTL
References HWREGB, and LDOPWR_PORTU_PIN_HIGH.
void LDOPWR_setPort_U0_outputData | ( | unsigned int | baseAddress, |
unsigned char | value | ||
) |
Sets PU.0 output data
baseAddress | is the base address of the LDO-PWR module. |
value | Valid values are LDOPWR_PORTU_PIN_HIGH LDOPWR_PORTU_PIN_LOW |
Modified register is PUCTL
References HWREGB, and LDOPWR_PORTU_PIN_HIGH.
void LDOPWR_togglePort_U1_outputData | ( | unsigned int | baseAddress | ) |
Toggles PU.1 output data
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
void LDOPWR_togglePort_U0_outputData | ( | unsigned int | baseAddress | ) |
Toggles PU.0 output data
baseAddress | is the base address of the LDO-PWR module. |
Modified register is PUCTL
References HWREGB.
void LDOPWR_enableInterrupt | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Enables LDO-PWR module interrupts
baseAddress | is the base address of the LDO-PWR module. |
mask | is the logical OR of LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT or LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT |
Modified register is LDOPWRCTL
References ASSERT, HWREGB, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, and LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT.
void LDOPWR_disableInterrupt | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Disables LDO-PWR module interrupts
baseAddress | is the base address of the LDO-PWR module. |
mask | is the logical OR of LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT |
Modified register is LDOPWRCTL
References ASSERT, HWREGB, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, and LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT.
void LDOPWR_enable | ( | unsigned int | baseAddress | ) |
Enables LDO-PWR module
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOPWRCTL
References HWREGB.
void LDOPWR_disable | ( | unsigned int | baseAddress | ) |
Disables LDO-PWR module
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOPWRCTL
References HWREGB.
unsigned char LDOPWR_getInterruptStatus | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Returns the interrupt status of LDO-PWR module interrupts
baseAddress | is the base address of the LDO-PWR module. |
mask | is the logical OR of LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT or LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT |
References ASSERT, HWREGB, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, and LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT.
void LDOPWR_clearInterruptStatus | ( | unsigned int | baseAddress, |
unsigned int | mask | ||
) |
Clears the interrupt status of LDO-PWR module interrupts
baseAddress | is the base address of the LDO-PWR module. |
mask | is the logical OR of LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT |
Modified register is LDOPWRCTL
References ASSERT, HWREGB, LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT, LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT, and LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT.
unsigned char LDOPWR_isLDOInputValid | ( | unsigned int | baseAddress | ) |
Returns if the the LDOI is valid and within bounds
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.
void LDOPWR_enableOverloadAutoOff | ( | unsigned int | baseAddress | ) |
Enables the LDO overload auto-off
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOPWRCTL
References HWREGB.
void LDOPWR_disableOverloadAutoOff | ( | unsigned int | baseAddress | ) |
Disables the LDO overload auto-off
baseAddress | is the base address of the LDO-PWR module. |
Modified register is LDOPWRCTL
References HWREGB.
unsigned char LDOPWR_getOverloadAutoOffStatus | ( | unsigned int | baseAddress | ) |
Returns if the LDOI overload auto-off is enabled or disabled
baseAddress | is the base address of the LDO-PWR module. |
References HWREGB.