7 #ifndef __MSP430WARE_REF_H__
8 #define __MSP430WARE_REF_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_REF__
31 #define REF_VREF1_5V (REFVSEL_0)
32 #define REF_VREF2_0V (REFVSEL_1)
33 #define REF_VREF2_5V (REFVSEL_2)
42 #define REF_ACTIVE true
43 #define REF_INACTIVE false
51 #define REF_STATICMODE 0x00
52 #define REF_SAMPLEMODE BGMODE
60 #define REF_NOTBUSY 0x00
61 #define REF_BUSY REFGENBUSY
91 uint8_t referenceVoltageSelect);
293 #endif // __MSP430WARE_REF_H__
void Ref_enableTempSensor(uint16_t baseAddress)
Enables the internal temperature sensor.
Definition: ref.c:33
void Ref_enableReferenceVoltageOutput(uint16_t baseAddress)
Outputs the reference voltage to an output pin.
Definition: ref.c:38
bool Ref_isBandgapActive(uint16_t baseAddress)
Returns the active status of the bandgap in the Ref module.
Definition: ref.c:63
void Ref_setReferenceVoltage(uint16_t baseAddress, uint8_t referenceVoltageSelect)
Sets the reference voltage for the voltage generator.
Definition: ref.c:21
uint16_t Ref_getBandgapMode(uint16_t baseAddress)
Returns the bandgap mode of the Ref module.
Definition: ref.c:58
bool Ref_isRefGenActive(uint16_t baseAddress)
Returns the active status of the reference generator in the Ref module.
Definition: ref.c:77
uint16_t Ref_isRefGenBusy(uint16_t baseAddress)
Returns the busy status of the reference generator in the Ref module.
Definition: ref.c:72
void Ref_disableReferenceVoltageOutput(uint16_t baseAddress)
Disables the reference voltage as an output to a pin.
Definition: ref.c:43
void Ref_disableTempSensor(uint16_t baseAddress)
Disables the internal temperature sensor to save power consumption.
Definition: ref.c:28
void Ref_disableReferenceVoltage(uint16_t baseAddress)
Disables the reference voltage.
Definition: ref.c:53
void Ref_enableReferenceVoltage(uint16_t baseAddress)
Enables the reference voltage to be used by peripherals.
Definition: ref.c:48