Functions | |
void | FRAMCtl_A_write8 (uint8_t *dataPtr, uint8_t *framPtr, uint16_t numberOfBytes) |
Write data into the fram memory in byte format. More... | |
void | FRAMCtl_A_write16 (uint16_t *dataPtr, uint16_t *framPtr, uint16_t numberOfWords) |
Write data into the fram memory in word format. More... | |
void | FRAMCtl_A_write32 (uint32_t *dataPtr, uint32_t *framPtr, uint16_t count) |
Write data into the fram memory in long format, pass by reference. More... | |
void | FRAMCtl_A_fillMemory32 (uint32_t value, uint32_t *framPtr, uint16_t count) |
Write data into the fram memory in long format, pass by value. More... | |
void | FRAMCtl_A_enableInterrupt (uint8_t interruptMask) |
Enables selected FRAMCtl_A interrupt sources. More... | |
uint8_t | FRAMCtl_A_getInterruptStatus (uint16_t interruptFlagMask) |
Returns the status of the selected FRAMCtl_A interrupt flags. More... | |
void | FRAMCtl_A_disableInterrupt (uint16_t interruptMask) |
Disables selected FRAMCtl_A interrupt sources. More... | |
void | FRAMCtl_A_clearInterrupt (uint16_t interruptFlagMask) |
Clears selected FRAMCtl_A interrupt status flag. More... | |
void | FRAMCtl_A_configureWaitStateControl (uint8_t waitState) |
Configures the access time of the FRAMCtl_A module. More... | |
void | FRAMCtl_A_delayPowerUpFromLPM (uint8_t delayStatus) |
Configures when the FRAMCtl_A module will power up after LPM exit. More... | |
void | FRAMCtl_A_enableWriteProtection (void) |
Enables FRAM write protection. More... | |
void | FRAMCtl_A_disableWriteProtection (void) |
Disables FRAM write protection. More... | |
void FRAMCtl_A_clearInterrupt | ( | uint16_t | interruptFlagMask | ) |
Clears selected FRAMCtl_A interrupt status flag.
Clears the indicated FRAMCtl_A interrupt status flag. These interrupt status flag can also be cleared through reading the system reset vector word SYSRSTIV.
interruptFlagMask | is a bit mask of the interrupt flags status to be cleared. Mask value is the logical OR of any of the following:
|
void FRAMCtl_A_configureWaitStateControl | ( | uint8_t | waitState | ) |
Configures the access time of the FRAMCtl_A module.
Configures the access time of the FRAMCtl_A module.
waitState | defines the number of CPU cycles required for access time defined in the datasheet Valid values are:
|
Modified bits are NWAITS of GCCTL0 register.
void FRAMCtl_A_delayPowerUpFromLPM | ( | uint8_t | delayStatus | ) |
Configures when the FRAMCtl_A module will power up after LPM exit.
Configures when the FRAMCtl_A module will power up after LPM exit. The module can either wait until the first FRAM access to power up or power up immediately after leaving LPM. If FRAM power is disabled, the FRAM memory remains in inactive mode until the FRAM memory is actually accessed. If FRAM power is enabled, the FRAM wil be immediately powered up (active mode).
delayStatus | chooses if FRAMCTL_A should power up instantly with LPM exit or to wait until first FRAMCTL_A access after LPM exit Valid values are:
|
void FRAMCtl_A_disableInterrupt | ( | uint16_t | interruptMask | ) |
Disables selected FRAMCtl_A interrupt sources.
Disables the indicated FRAMCtl_A interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.
interruptMask | is the bit mask of the memory buffer interrupt sources to be disabled. Mask value is the logical OR of any of the following:
|
void FRAMCtl_A_disableWriteProtection | ( | void | ) |
Disables FRAM write protection.
Disables the FRAM write protection. Writing to FRAM memory is allowed.
Modified bits are WPROT of FRCTL0 register.
void FRAMCtl_A_enableInterrupt | ( | uint8_t | interruptMask | ) |
Enables selected FRAMCtl_A interrupt sources.
Enables the indicated FRAMCtl_A interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor. Does not clear interrupt flags.
interruptMask | is the bit mask of the memory buffer interrupt sources to be disabled. Mask value is the logical OR of any of the following:
|
Modified bits of GCCTL0 register and bits of FRCTL0 register.
void FRAMCtl_A_enableWriteProtection | ( | void | ) |
Enables FRAM write protection.
This function enables FRAM write protection and protect entire FRAM memory from unintended write. It should be used as temporary protection. The permanent FRAM memory protection should be done via MPU segments related APIs.
Modified bits are WPROT of FRCTL0 register.
void FRAMCtl_A_fillMemory32 | ( | uint32_t | value, |
uint32_t * | framPtr, | ||
uint16_t | count | ||
) |
Write data into the fram memory in long format, pass by value.
value | is the value to written to FRAMCTL_A memory |
framPtr | is the pointer into which to write the data |
count | is the number of 32 bit addresses to fill |
uint8_t FRAMCtl_A_getInterruptStatus | ( | uint16_t | interruptFlagMask | ) |
Returns the status of the selected FRAMCtl_A interrupt flags.
interruptFlagMask | is a bit mask of the interrupt flags status to be returned. Mask value is the logical OR of any of the following:
|
void FRAMCtl_A_write16 | ( | uint16_t * | dataPtr, |
uint16_t * | framPtr, | ||
uint16_t | numberOfWords | ||
) |
Write data into the fram memory in word format.
dataPtr | is the pointer to the data to be written |
framPtr | is the pointer into which to write the data |
numberOfWords | is the number of words to be written |
void FRAMCtl_A_write32 | ( | uint32_t * | dataPtr, |
uint32_t * | framPtr, | ||
uint16_t | count | ||
) |
Write data into the fram memory in long format, pass by reference.
dataPtr | is the pointer to the data to be written |
framPtr | is the pointer into which to write the data |
count | is the number of 32 bit words to be written |
void FRAMCtl_A_write8 | ( | uint8_t * | dataPtr, |
uint8_t * | framPtr, | ||
uint16_t | numberOfBytes | ||
) |
Write data into the fram memory in byte format.
dataPtr | is the pointer to the data to be written |
framPtr | is the pointer into which to write the data |
numberOfBytes | is the number of bytes to be written |