MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
ldopwr

Functions

void LDOPWR_unLockConfiguration (uint16_t baseAddress)
 Unlocks the configuration registers and enables write access. More...
 
void LDOPWR_lockConfiguration (uint16_t baseAddress)
 Locks the configuration registers and disables write access. More...
 
void LDOPWR_enablePort_U_inputs (uint16_t baseAddress)
 Enables Port U inputs. More...
 
void LDOPWR_disablePort_U_inputs (uint16_t baseAddress)
 Disables Port U inputs. More...
 
void LDOPWR_enablePort_U_outputs (uint16_t baseAddress)
 Enables Port U outputs. More...
 
void LDOPWR_disablePort_U_outputs (uint16_t baseAddress)
 Disables Port U inputs. More...
 
uint8_t LDOPWR_getPort_U1_inputData (uint16_t baseAddress)
 Returns PU.1 input data. More...
 
uint8_t LDOPWR_getPort_U0_inputData (uint16_t baseAddress)
 Returns PU.0 input data. More...
 
uint8_t LDOPWR_getPort_U1_outputData (uint16_t baseAddress)
 Returns PU.1 output data. More...
 
uint8_t LDOPWR_getPort_U0_outputData (uint16_t baseAddress)
 Returns PU.0 output data. More...
 
void LDOPWR_setPort_U1_outputData (uint16_t baseAddress, uint8_t value)
 Sets PU.1 output data. More...
 
void LDOPWR_setPort_U0_outputData (uint16_t baseAddress, uint8_t value)
 Sets PU.0 output data. More...
 
void LDOPWR_togglePort_U1_outputData (uint16_t baseAddress)
 Toggles PU.1 output data. More...
 
void LDOPWR_togglePort_U0_outputData (uint16_t baseAddress)
 Toggles PU.0 output data. More...
 
void LDOPWR_enableInterrupt (uint16_t baseAddress, uint16_t mask)
 Enables LDO-PWR module interrupts. More...
 
void LDOPWR_disableInterrupt (uint16_t baseAddress, uint16_t mask)
 Disables LDO-PWR module interrupts. More...
 
void LDOPWR_enable (uint16_t baseAddress)
 Enables LDO-PWR module. More...
 
void LDOPWR_disable (uint16_t baseAddress)
 Disables LDO-PWR module. More...
 
uint8_t LDOPWR_getInterruptStatus (uint16_t baseAddress, uint16_t mask)
 Returns the interrupt status of LDO-PWR module interrupts. More...
 
void LDOPWR_clearInterrupt (uint16_t baseAddress, uint16_t mask)
 Clears the interrupt status of LDO-PWR module interrupts. More...
 
uint8_t LDOPWR_isLDOInputValid (uint16_t baseAddress)
 Returns if the the LDOI is valid and within bounds. More...
 
void LDOPWR_enableOverloadAutoOff (uint16_t baseAddress)
 Enables the LDO overload auto-off. More...
 
void LDOPWR_disableOverloadAutoOff (uint16_t baseAddress)
 Disables the LDO overload auto-off. More...
 
uint8_t LDOPWR_getOverloadAutoOffStatus (uint16_t baseAddress)
 Returns if the LDOI overload auto-off is enabled or disabled. More...
 

Detailed Description

Function Documentation

§ LDOPWR_clearInterrupt()

void LDOPWR_clearInterrupt ( uint16_t  baseAddress,
uint16_t  mask 
)

Clears the interrupt status of LDO-PWR module interrupts.

Parameters
baseAddressis the base address of the LDOPWR module.
maskmask of interrupts to clear the status of Mask value is the logical OR of any of the following:
  • LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT
  • LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT
  • LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_disable()

void LDOPWR_disable ( uint16_t  baseAddress)

Disables LDO-PWR module.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_disableInterrupt()

void LDOPWR_disableInterrupt ( uint16_t  baseAddress,
uint16_t  mask 
)

Disables LDO-PWR module interrupts.

Parameters
baseAddressis the base address of the LDOPWR module.
maskmask of interrupts to disable Mask value is the logical OR of any of the following:
  • LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT
  • LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT
  • LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_disableOverloadAutoOff()

void LDOPWR_disableOverloadAutoOff ( uint16_t  baseAddress)

Disables the LDO overload auto-off.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_disablePort_U_inputs()

void LDOPWR_disablePort_U_inputs ( uint16_t  baseAddress)

Disables Port U inputs.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_disablePort_U_outputs()

void LDOPWR_disablePort_U_outputs ( uint16_t  baseAddress)

Disables Port U inputs.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_enable()

void LDOPWR_enable ( uint16_t  baseAddress)

Enables LDO-PWR module.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_enableInterrupt()

void LDOPWR_enableInterrupt ( uint16_t  baseAddress,
uint16_t  mask 
)

Enables LDO-PWR module interrupts.

Does not clear interrupt flags.

Parameters
baseAddressis the base address of the LDOPWR module.
maskmask of interrupts to enable Mask value is the logical OR of any of the following:
  • LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT
  • LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT
  • LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_enableOverloadAutoOff()

void LDOPWR_enableOverloadAutoOff ( uint16_t  baseAddress)

Enables the LDO overload auto-off.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOPWRCTL register.

Returns
None

§ LDOPWR_enablePort_U_inputs()

void LDOPWR_enablePort_U_inputs ( uint16_t  baseAddress)

Enables Port U inputs.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_enablePort_U_outputs()

void LDOPWR_enablePort_U_outputs ( uint16_t  baseAddress)

Enables Port U outputs.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_getInterruptStatus()

uint8_t LDOPWR_getInterruptStatus ( uint16_t  baseAddress,
uint16_t  mask 
)

Returns the interrupt status of LDO-PWR module interrupts.

Parameters
baseAddressis the base address of the LDOPWR module.
maskmask of interrupts to get the status of Mask value is the logical OR of any of the following:
  • LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT
  • LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT
  • LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT
Returns
Logical OR of any of the following:
  • LDOPWR_LDOI_VOLTAGE_GOING_OFF_INTERRUPT
  • LDOPWR_LDOI_VOLTAGE_COMING_ON_INTERRUPT
  • LDOPWR_LDO_OVERLOAD_INDICATION_INTERRUPT
    indicating the status of the masked interrupts

§ LDOPWR_getOverloadAutoOffStatus()

uint8_t LDOPWR_getOverloadAutoOffStatus ( uint16_t  baseAddress)

Returns if the LDOI overload auto-off is enabled or disabled.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_AUTOOFF_ENABLED
  • LDOPWR_AUTOOFF_DISABLED

§ LDOPWR_getPort_U0_inputData()

uint8_t LDOPWR_getPort_U0_inputData ( uint16_t  baseAddress)

Returns PU.0 input data.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

§ LDOPWR_getPort_U0_outputData()

uint8_t LDOPWR_getPort_U0_outputData ( uint16_t  baseAddress)

Returns PU.0 output data.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

§ LDOPWR_getPort_U1_inputData()

uint8_t LDOPWR_getPort_U1_inputData ( uint16_t  baseAddress)

Returns PU.1 input data.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

§ LDOPWR_getPort_U1_outputData()

uint8_t LDOPWR_getPort_U1_outputData ( uint16_t  baseAddress)

Returns PU.1 output data.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

§ LDOPWR_isLDOInputValid()

uint8_t LDOPWR_isLDOInputValid ( uint16_t  baseAddress)

Returns if the the LDOI is valid and within bounds.

Parameters
baseAddressis the base address of the LDOPWR module.
Returns
One of the following:
  • LDOPWR_LDO_INPUT_VALID
  • LDOPWR_LDO_INPUT_INVALID

§ LDOPWR_lockConfiguration()

void LDOPWR_lockConfiguration ( uint16_t  baseAddress)

Locks the configuration registers and disables write access.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOKEYPID register.

Returns
None

§ LDOPWR_setPort_U0_outputData()

void LDOPWR_setPort_U0_outputData ( uint16_t  baseAddress,
uint8_t  value 
)

Sets PU.0 output data.

Parameters
baseAddressis the base address of the LDOPWR module.
valueValid values are:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_setPort_U1_outputData()

void LDOPWR_setPort_U1_outputData ( uint16_t  baseAddress,
uint8_t  value 
)

Sets PU.1 output data.

Parameters
baseAddressis the base address of the LDOPWR module.
valueValid values are:
  • LDOPWR_PORTU_PIN_HIGH
  • LDOPWR_PORTU_PIN_LOW

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_togglePort_U0_outputData()

void LDOPWR_togglePort_U0_outputData ( uint16_t  baseAddress)

Toggles PU.0 output data.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_togglePort_U1_outputData()

void LDOPWR_togglePort_U1_outputData ( uint16_t  baseAddress)

Toggles PU.1 output data.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of PUCTL register.

Returns
None

§ LDOPWR_unLockConfiguration()

void LDOPWR_unLockConfiguration ( uint16_t  baseAddress)

Unlocks the configuration registers and enables write access.

Parameters
baseAddressis the base address of the LDOPWR module.

Modified bits of LDOKEYPID register.

Returns
None

Copyright 2020, Texas Instruments Incorporated