7 #ifndef __MSP430WARE_REF_A_H__
8 #define __MSP430WARE_REF_A_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_REF_A__
31 #define REF_A_VREF1_2V (REFVSEL_0)
32 #define REF_A_VREF2_0V (REFVSEL_1)
33 #define REF_A_VREF2_5V (REFVSEL_2)
42 #define REF_A_ACTIVE true
43 #define REF_A_INACTIVE false
51 #define REF_A_STATICMODE 0x00
52 #define REF_A_SAMPLEMODE BGMODE
60 #define REF_A_NOTBUSY 0x00
61 #define REF_A_BUSY REFGENBUSY
70 #define REF_A_NOTREADY false
71 #define REF_A_READY true
101 uint8_t referenceVoltageSelect);
381 #endif // __MSP430WARE_REF_A_H__
void Ref_A_setReferenceVoltageOneTimeTrigger(uint16_t baseAddress)
Enables the one-time trigger of the reference voltage.
Definition: ref_a.c:104
bool Ref_A_isVariableReferenceVoltageOutputReady(uint16_t baseAddress)
Returns the busy status of the variable reference voltage in the Ref_A module.
Definition: ref_a.c:95
void Ref_A_setBufferedBandgapVoltageOneTimeTrigger(uint16_t baseAddress)
Enables the one-time trigger of the buffered bandgap voltage.
Definition: ref_a.c:109
void Ref_A_enableReferenceVoltage(uint16_t baseAddress)
Enables the reference voltage to be used by peripherals.
Definition: ref_a.c:48
uint16_t Ref_A_getBandgapMode(uint16_t baseAddress)
Returns the bandgap mode of the Ref_A module.
Definition: ref_a.c:58
bool Ref_A_isBandgapActive(uint16_t baseAddress)
Returns the active status of the bandgap in the Ref_A module.
Definition: ref_a.c:63
void Ref_A_setReferenceVoltage(uint16_t baseAddress, uint8_t referenceVoltageSelect)
Sets the reference voltage for the voltage generator.
Definition: ref_a.c:21
void Ref_A_enableTempSensor(uint16_t baseAddress)
Enables the internal temperature sensor.
Definition: ref_a.c:33
bool Ref_A_isBufferedBandgapVoltageReady(uint16_t baseAddress)
Returns the busy status of the reference generator in the Ref_A module.
Definition: ref_a.c:86
void Ref_A_disableTempSensor(uint16_t baseAddress)
Disables the internal temperature sensor to save power consumption.
Definition: ref_a.c:28
void Ref_A_enableReferenceVoltageOutput(uint16_t baseAddress)
Outputs the reference voltage to an output pin.
Definition: ref_a.c:38
uint16_t Ref_A_isRefGenBusy(uint16_t baseAddress)
Returns the busy status of the reference generator in the Ref_A module.
Definition: ref_a.c:72
void Ref_A_disableReferenceVoltageOutput(uint16_t baseAddress)
Disables the reference voltage as an output to a pin.
Definition: ref_a.c:43
void Ref_A_disableReferenceVoltage(uint16_t baseAddress)
Disables the reference voltage.
Definition: ref_a.c:53
bool Ref_A_isRefGenActive(uint16_t baseAddress)
Returns the active status of the reference generator in the Ref_A module.
Definition: ref_a.c:77