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) 41 #define REF_STATICMODE 0x00 42 #define REF_SAMPLEMODE BGMODE 51 #define REF_ACTIVE true 52 #define REF_INACTIVE false 60 #define REF_NOTBUSY 0x00 61 #define REF_BUSY REFGENBUSY 91 uint8_t referenceVoltageSelect);
255 #endif // __MSP430WARE_REF_H__ void Ref_enableTempSensor(uint16_t baseAddress)
Enables the internal temperature sensor.
Definition: ref.c:35
bool Ref_isBandgapActive(uint16_t baseAddress)
Returns the active status of the bandgap in the Ref module.
Definition: ref.c:55
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:50
bool Ref_isRefGenActive(uint16_t baseAddress)
Returns the active status of the reference generator in the Ref module.
Definition: ref.c:69
uint16_t Ref_isRefGenBusy(uint16_t baseAddress)
Returns the busy status of the reference generator in the Ref module.
Definition: ref.c:64
void Ref_disableTempSensor(uint16_t baseAddress)
Disables the internal temperature sensor to save power consumption.
Definition: ref.c:30
void Ref_disableReferenceVoltage(uint16_t baseAddress)
Disables the reference voltage.
Definition: ref.c:45
void Ref_enableReferenceVoltage(uint16_t baseAddress)
Enables the reference voltage to be used by peripherals.
Definition: ref.c:40