OTA Storage Simple Driver#

Callbacks for OTA Storage Simple Driver Component.

Callbacks#

bool

Custom Storage Init callback.

bool
sl_zigbee_af_custom_storage_read_cb(uint32_t offset, uint32_t length, uint8_t *returnData)

Custom Storage Read callback.

bool
sl_zigbee_af_custom_storage_write_cb(const uint8_t *dataToWrite, uint32_t offset, uint32_t length)

Custom Storage Write callback.

Callbacks Documentation#

sl_zigbee_af_custom_storage_init_cb#

bool sl_zigbee_af_custom_storage_init_cb (void )

Custom Storage Init callback.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Returns

  • bool


sl_zigbee_af_custom_storage_read_cb#

bool sl_zigbee_af_custom_storage_read_cb (uint32_t offset, uint32_t length, uint8_t * returnData)

Custom Storage Read callback.

Parameters
TypeDirectionArgument NameDescription
uint32_tN/Aoffset

offset

uint32_tN/Alength

length

uint8_t *N/AreturnData

data returned

Returns

  • bool


sl_zigbee_af_custom_storage_write_cb#

bool sl_zigbee_af_custom_storage_write_cb (const uint8_t * dataToWrite, uint32_t offset, uint32_t length)

Custom Storage Write callback.

Parameters
TypeDirectionArgument NameDescription
const uint8_t *N/AdataToWrite

data to be written

uint32_tN/Aoffset

offset

uint32_tN/Alength

length

Returns

  • bool