GM6000 Digital Heater Controller Branch: main
SDX-1330
Classes | Namespaces | Macros
BdSpi.h File Reference
#include "colony_config.h"
#include "Cpl/Io/File/Littlefs/BlockDriverApi.h"
#include "Driver/SPI/MasterHalfDuplex.h"
#include "Driver/DIO/Out.h"
Include dependency graph for BdSpi.h:

Go to the source code of this file.

Classes

class  Cpl::Io::File::Littlefs::BdSpi
 Concrete Block Driver for a 'traditional' SPI based NOR flash. More...
 
struct  Cpl::Io::File::Littlefs::BdSpi::JedecID_T
 JEDEC ID. More...
 

Namespaces

namespace  Cpl
 The 'Cpl' namespace is the root name space for the Colony.
 
namespace  Cpl::Io
 The Io namespace provides the base/common interfaces for reading and writing data from/to streams and files.
 
namespace  Cpl::Io::File
 The File namespace provides the base/common interfaces for reading and writing data from/to Files.
 
namespace  Cpl::Io::File::Littlefs
 The 'Littlefs' namespace implements the CPL file abstractions using the open source 'littlefs' file system (https://github.com/littlefs-project/littlefs)
 

Macros

#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_MAX_RETRIES   2100
 Number of times to retry a read operation when an error occurs.
 
#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_RETRY_DELAY_MS   1
 Delay, in milliseconds, between read retries.
 
#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_DEFAULT_FLASH_PAGE_SIZE   256
 Default Page size in bytes.
 

Class Documentation

◆ Cpl::Io::File::Littlefs::BdSpi::JedecID_T

struct Cpl::Io::File::Littlefs::BdSpi::JedecID_T

JEDEC ID.

Class Members
uint8_t capacity Capacity.
uint8_t manufacturerID Manufacturer ID.
uint8_t memoryType Memory Type.

Macro Definition Documentation

◆ OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_DEFAULT_FLASH_PAGE_SIZE

#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_DEFAULT_FLASH_PAGE_SIZE   256

Default Page size in bytes.

◆ OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_MAX_RETRIES

#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_MAX_RETRIES   2100

Number of times to retry a read operation when an error occurs.

Note: OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_MAX_RETRIES * OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_RETRY_DELAY_MS should be greater than the max block erase time of the flash chip

◆ OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_RETRY_DELAY_MS

#define OPTION_CPL_IO_FILE_LITTLEFS_BDSPI_READ_RETRY_DELAY_MS   1

Delay, in milliseconds, between read retries.