The main ca821x-api include file.
ca_error utilsFlashStatusWait(struct ca821x_dev *aInstance, uint32_t aTimeout)
Check whether flash is ready or busy.
Definition: cascoda_flash.c:101
void utilsFlashSetUsedSize(struct ca821x_dev *aInstance, uint32_t aSize)
Internal function for setting the amount of flash used.
Definition: cascoda_flash.c:70
uint32_t utilsFlashGetUsedSize(struct ca821x_dev *aInstance)
Internal function for returning the amount of flash used.
Definition: cascoda_flash.c:58
uint32_t utilsFlashRead(struct ca821x_dev *aInstance, uint32_t aAddress, uint8_t *aData, uint32_t aSize)
Read flash.
Definition: cascoda_flash.c:144
uint32_t utilsFlashGetBaseAddress(struct ca821x_dev *aInstance)
Internal function for getting the base address.
Definition: cascoda_flash.c:52
ca_error utilsFlashInit(struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId)
Perform any initialization for flash driver.
Definition: cascoda_flash.c:76
uint32_t utilsFlashGetSize(struct ca821x_dev *aInstance)
Get the size of flash that can be read/write by the caller.
Definition: cascoda_flash.c:84
ca_error utilsFlashDeinit(struct ca821x_dev *aInstance)
Deinitialize the flash driver.
Definition: cascoda_bsp_dummy.c:431
void utilsFlashSetBaseAddress(struct ca821x_dev *aInstance, uint32_t aAddress)
Internal function for setting the base address.
Definition: cascoda_flash.c:64
ca_error utilsFlashErasePage(struct ca821x_dev *aInstance, uint32_t aAddress)
Erase one flash page that include the input address.
Definition: cascoda_flash.c:92
uint32_t utilsFlashWrite(struct ca821x_dev *aInstance, uint32_t aAddress, const uint8_t *aData, uint32_t aSize)
Write flash.
Definition: cascoda_flash.c:108
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
CA-821x Device reference struct.
Definition: ca821x_api.h:123
Description of the internal flash.
Definition: cascoda_flash.h:47
uint8_t numPages
Number of flash pages that make up the user flash region.
Definition: cascoda_flash.h:52
uint32_t dataFlashBaseAddr
Base address of the dataflash.
Definition: cascoda_flash.h:49
uint16_t pageSize
Size of each flash page (in bytes)
Definition: cascoda_flash.h:51
uint32_t manufacturerDataFlashBaseAddr
Base address of flash page reserved for constant manufacturer data.
Definition: cascoda_flash.h:50
uint32_t apromFlashBaseAddr
Base address of the APROM flash.
Definition: cascoda_flash.h:48