22#include "px_log_fs_glue.h"
23#include "px_log_fs_cfg.h"
43 uint16_t start_byte_in_page,
56 uint16_t start_byte_in_page,
72#if (PX_LOG_FS_CFG_ERASE_BLOCK_SIZE == PX_AT25S_PAGES_PER_BLOCK_4KB)
77#elif (PX_LOG_FS_CFG_ERASE_BLOCK_SIZE == PX_AT25S_PAGES_PER_BLOCK_32KB)
82#elif (PX_LOG_FS_CFG_ERASE_BLOCK_SIZE == PX_AT25S_PAGES_PER_BLOCK_64KB)
88 #error "Invalid block size specified");
void px_at25s_wr_page_offset(const void *buf, uint16_t page, uint8_t start_byte_in_page, uint16_t nr_of_bytes)
Partial write of data in a page of Serial Flash.
void px_at25s_erase(px_at25s_block_t block, uint16_t page)
Erase a block of Serial Flash.
void px_at25s_rd_page_offset(void *buf, uint16_t page, uint8_t start_byte_in_page, uint16_t nr_of_bytes)
Partial read of data in a page of Serial Flash.
void px_log_fs_glue_wr(const void *buf, uint16_t page, uint16_t start_byte_in_page, uint16_t nr_of_bytes)
Writes data to Serial Flash.
#define PX_LOG_FS_CFG_ERASE_BLOCK_SIZE
Erase block size (in pages) for file system.
#define PX_LOG_FS_CFG_PAGE_SIZE
Page size for file system.
void px_log_fs_glue_rd(void *buf, uint16_t page, uint16_t start_byte_in_page, uint16_t nr_of_bytes)
Read data from Serial Flash.
void px_log_fs_glue_erase_block(uint16_t page)
Erases data in Serial Flash.
#define PX_LOG_NAME(name)
Macro to declare a log name string once for each file to reduce code size.
#define PX_LOG_ASSERT(expression)
Macro that will test an expression, and block indefinitely if false.