7 #ifndef __MSP430WARE_FRAMCTL_H__
8 #define __MSP430WARE_FRAMCTL_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_FRAM__
31 #define FRAMCTL_PUC_ON_UNCORRECTABLE_BIT UBDRSTEN
32 #define FRAMCTL_UNCORRECTABLE_BIT_INTERRUPT UBDIE
33 #define FRAMCTL_CORRECTABLE_BIT_INTERRUPT CBDIE
42 #define FRAMCTL_ACCESS_TIME_ERROR_FLAG ACCTEIFG
43 #define FRAMCTL_UNCORRECTABLE_BIT_FLAG UBDIFG
44 #define FRAMCTL_CORRECTABLE_BIT_FLAG CBDIFG
52 #define FRAMCTL_ACCESS_TIME_CYCLES_0 NWAITS_0
53 #define FRAMCTL_ACCESS_TIME_CYCLES_1 NWAITS_1
54 #define FRAMCTL_ACCESS_TIME_CYCLES_2 NWAITS_2
55 #define FRAMCTL_ACCESS_TIME_CYCLES_3 NWAITS_3
56 #define FRAMCTL_ACCESS_TIME_CYCLES_4 NWAITS_4
57 #define FRAMCTL_ACCESS_TIME_CYCLES_5 NWAITS_5
58 #define FRAMCTL_ACCESS_TIME_CYCLES_6 NWAITS_6
59 #define FRAMCTL_ACCESS_TIME_CYCLES_7 NWAITS_7
67 #define FRAMCTL_DELAY_FROM_LPM_ENABLE 0x00
68 #define FRAMCTL_DELAY_FROM_LPM_DISABLE 0x02
89 uint16_t numberOfBytes);
104 uint16_t numberOfWords);
272 #endif // __MSP430WARE_FRAMCTL_H__
void FRAMCtl_disableInterrupt(uint16_t interruptMask)
Disables selected FRAMCtl interrupt sources.
Definition: framctl.c:86
void FRAMCtl_configureWaitStateControl(uint8_t waitState)
Configures the access time of the FRAMCtl module.
Definition: framctl.c:97
void FRAMCtl_write16(uint16_t *dataPtr, uint16_t *framPtr, uint16_t numberOfWords)
Write data into the fram memory in word format.
Definition: framctl.c:34
void FRAMCtl_enableInterrupt(uint8_t interruptMask)
Enables selected FRAMCtl interrupt sources.
Definition: framctl.c:69
void FRAMCtl_fillMemory32(uint32_t value, uint32_t *framPtr, uint16_t count)
Write data into the fram memory in long format, pass by value.
Definition: framctl.c:56
void FRAMCtl_write32(uint32_t *dataPtr, uint32_t *framPtr, uint16_t count)
Write data into the fram memory in long format, pass by reference.
Definition: framctl.c:45
uint8_t FRAMCtl_getInterruptStatus(uint16_t interruptFlagMask)
Returns the status of the selected FRAMCtl interrupt flags.
Definition: framctl.c:81
void FRAMCtl_write8(uint8_t *dataPtr, uint8_t *framPtr, uint16_t numberOfBytes)
Write data into the fram memory in byte format.
Definition: framctl.c:21
void FRAMCtl_delayPowerUpFromLPM(uint8_t delayStatus)
Configures when the FRAMCtl module will power up after LPM exit.
Definition: framctl.c:106