|
PebbleOS
|
Storage backend operations, mirroring the pb_storage_*() functions. More...
#include <put_bytes_storage_internal.h>
Data Fields | |
| bool(* | init )(PutBytesStorage *storage, PutBytesObjectType object_type, uint32_t total_size, PutBytesStorageInfo *info, uint32_t append_offset) |
| Initialize storage, see pb_storage_init(). | |
| uint32_t(* | get_max_size )(PutBytesObjectType object_type) |
| Get the largest object size supported for a type. | |
| void(* | write )(PutBytesStorage *storage, uint32_t offset, const uint8_t *buffer, uint32_t length) |
| Write data, see pb_storage_write(). | |
| uint32_t(* | calculate_crc )(PutBytesStorage *storage, PutBytesCrcType crc_type) |
| Compute the CRC, see pb_storage_calculate_crc(). | |
| void(* | deinit )(PutBytesStorage *storage, bool is_success) |
| Release storage, see pb_storage_deinit(). | |
Storage backend operations, mirroring the pb_storage_*() functions.
Backend operations, see Put bytes storage backend interface.
| uint32_t(* PutBytesStorageImplementation::calculate_crc) (PutBytesStorage *storage, PutBytesCrcType crc_type) |
Compute the CRC, see pb_storage_calculate_crc().
| void(* PutBytesStorageImplementation::deinit) (PutBytesStorage *storage, bool is_success) |
Release storage, see pb_storage_deinit().
| uint32_t(* PutBytesStorageImplementation::get_max_size) (PutBytesObjectType object_type) |
Get the largest object size supported for a type.
| bool(* PutBytesStorageImplementation::init) (PutBytesStorage *storage, PutBytesObjectType object_type, uint32_t total_size, PutBytesStorageInfo *info, uint32_t append_offset) |
Initialize storage, see pb_storage_init().
| void(* PutBytesStorageImplementation::write) (PutBytesStorage *storage, uint32_t offset, const uint8_t *buffer, uint32_t length) |
Write data, see pb_storage_write().