Skip to content

SPI NOR flash platform

File SolidSyslogSpiNorFlashErrors.h

FileList > Interface > SolidSyslogSpiNorFlashErrors.h

Error codes and Source identity for the SpiNorFlash.

  • #include <stdint.h>
  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogSpiNorFlashErrors

Detail codes for events whose Source is SolidSyslogSpiNorFlashErrorSource.

enum SolidSyslogSpiNorFlashErrors {
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_NULL_CONFIG,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_NULL_BUS,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_BUS_INCOMPLETE,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_NO_SFDP,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_SFDP_NOT_UNDERSTOOD,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_PART_TOO_LARGE,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_FOUR_BYTE_ADDRESSES_ONLY,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_HAS_SECTOR_MAP,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_NO_ANSWER,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_BUS_FAILED,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_TIMED_OUT,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_WRITE_REFUSED,
    SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_MAX
};

A handler reads these off event->Detail after matching event->Source; the members name their own fault.


Public Attributes Documentation

SolidSyslogSpiNorFlashErrorSource

The identity for events raised by a SpiNorFlash.

const struct SolidSyslogErrorSource SolidSyslogSpiNorFlashErrorSource;

A handler matches by address (event->Source == &SolidSyslogSpiNorFlashErrorSource), then reads event->Detail as an enum SolidSyslogSpiNorFlashErrors.


Public Functions Documentation

SolidSyslogSpiNorFlashErrors_Name

The detail's name, read beside the category's: NO_SFDP for SOLIDSYSLOG_SPI_NOR_FLASH_ERROR_NO_SFDP.

const char * SolidSyslogSpiNorFlashErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



The documentation for this class was generated from the following file Platform/SpiNorFlash/Interface/SolidSyslogSpiNorFlashErrors.h