Functions | |
void | FRAMCtl_write8 (uint8_t *dataPtr, uint8_t *framPtr, uint16_t numberOfBytes) |
Write data into the fram memory in byte format. More... | |
void | FRAMCtl_write16 (uint16_t *dataPtr, uint16_t *framPtr, uint16_t numberOfWords) |
Write data into the fram memory in word format. More... | |
void | FRAMCtl_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_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_enableInterrupt (uint8_t interruptMask) |
Enables selected FRAMCtl interrupt sources. More... | |
uint8_t | FRAMCtl_getInterruptStatus (uint16_t interruptFlagMask) |
Returns the status of the selected FRAMCtl interrupt flags. More... | |
void | FRAMCtl_disableInterrupt (uint16_t interruptMask) |
Disables selected FRAMCtl interrupt sources. More... | |
void | FRAMCtl_configureWaitStateControl (uint8_t waitState) |
Configures the access time of the FRAMCtl module. More... | |
void | FRAMCtl_delayPowerUpFromLPM (uint8_t delayStatus) |
Configures when the FRAMCtl module will power up after LPM exit. More... | |
void FRAMCtl_configureWaitStateControl | ( | uint8_t | waitState | ) |
Configures the access time of the FRAMCtl module.
Configures the access time of the FRAMCtl 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_delayPowerUpFromLPM | ( | uint8_t | delayStatus | ) |
Configures when the FRAMCtl module will power up after LPM exit.
Configures when the FRAMCtl module will power up after LPM exit. The module can either wait until the first FRAMCtl access to power up or power up immediately after leaving LPM. If FRAMCtl power is disabled, a memory access will automatically insert wait states to ensure sufficient timing for the FRAMCtl power-up and access.
delayStatus | chooses if FRAMCTL should power up instantly with LPM exit or to wait until first FRAMCTL access after LPM exit Valid values are:
|
void FRAMCtl_disableInterrupt | ( | uint16_t | interruptMask | ) |
Disables selected FRAMCtl interrupt sources.
Disables the indicated FRAMCtl 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_enableInterrupt | ( | uint8_t | interruptMask | ) |
Enables selected FRAMCtl interrupt sources.
Enables the indicated FRAMCtl 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_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 memory |
framPtr | is the pointer into which to write the data |
count | is the number of 32 bit addresses to fill |
uint8_t FRAMCtl_getInterruptStatus | ( | uint16_t | interruptFlagMask | ) |
Returns the status of the selected FRAMCtl 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_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_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_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 |