7 #ifndef __MSP430WARE_FRAMCTL_H__
8 #define __MSP430WARE_FRAMCTL_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_FRAM_FR5XX__
31 #define FRAMCTL_PUC_ON_UNCORRECTABLE_BIT UBDRSTEN
32 #define FRAMCTL_UNCORRECTABLE_BIT_INTERRUPT UBDIEN
33 #define FRAMCTL_CORRECTABLE_BIT_INTERRUPT CBDIEN
34 #define FRAMCTL_ACCESS_VIOLATION_INTERRUPT ACCVIE
35 #define FRAMCTL_ACCESS_TIME_ERROR_INTERRUPT ACCTEIE
44 #define FRAMCTL_ACCESS_TIME_ERROR_FLAG ACCTEIFG
45 #define FRAMCTL_UNCORRECTABLE_BIT_FLAG UBDIFG
46 #define FRAMCTL_CORRECTABLE_BIT_FLAG CBDIFG
47 #define FRAMCTL_ACCESS_VIOLATION_FLAG ACCVIFG
55 #define FRAMCTL_ACCESS_TIME_CYCLES_0 NACCESS_0
56 #define FRAMCTL_ACCESS_TIME_CYCLES_1 NACCESS_1
57 #define FRAMCTL_ACCESS_TIME_CYCLES_2 NACCESS_2
58 #define FRAMCTL_ACCESS_TIME_CYCLES_3 NACCESS_3
59 #define FRAMCTL_ACCESS_TIME_CYCLES_4 NACCESS_4
60 #define FRAMCTL_ACCESS_TIME_CYCLES_5 NACCESS_5
61 #define FRAMCTL_ACCESS_TIME_CYCLES_6 NACCESS_6
62 #define FRAMCTL_ACCESS_TIME_CYCLES_7 NACCESS_7
70 #define FRAMCTL_PRECHARGE_TIME_CYCLES_0 NPRECHG_0
71 #define FRAMCTL_PRECHARGE_TIME_CYCLES_1 NPRECHG_1
72 #define FRAMCTL_PRECHARGE_TIME_CYCLES_2 NPRECHG_2
73 #define FRAMCTL_PRECHARGE_TIME_CYCLES_3 NPRECHG_3
74 #define FRAMCTL_PRECHARGE_TIME_CYCLES_4 NPRECHG_4
75 #define FRAMCTL_PRECHARGE_TIME_CYCLES_5 NPRECHG_5
76 #define FRAMCTL_PRECHARGE_TIME_CYCLES_6 NPRECHG_6
77 #define FRAMCTL_PRECHARGE_TIME_CYCLES_7 NPRECHG_7
85 #define FRAMCTL_AUTO_MODE NAUTO
86 #define FRAMCTL_MANUAL_MODE 0x00
107 uint16_t numberOfBytes);
121 uint16_t numberOfWords);
288 uint8_t prechargeTime);
300 #endif // __MSP430WARE_FRAMCTL_H__
void FRAMCtl_disableInterrupt(uint16_t interruptMask)
Disables selected FRAMCtl interrupt sources.
Definition: framctl.c:89
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:70
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:46
void FRAMCtl_memoryFill32(uint32_t value, uint32_t *framPtr, uint16_t count)
Write data into the fram memory in long format, pass by value.
Definition: framctl.c:57
uint8_t FRAMCtl_getInterruptStatus(uint16_t interruptFlagMask)
Returns the status of the selected FRAMCtl interrupt flags.
Definition: framctl.c:84
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_configureWaitStateControl(uint8_t manualWaitState, uint8_t accessTime, uint8_t prechargeTime)
Configures the wait state control of the FRAMCtl module Configures the wait state control of the FRAM...
Definition: framctl.c:100