Skip to content

File SolidSyslogNorFlashBlockDeviceErrors.h

FileList > Core > Interface > SolidSyslogNorFlashBlockDeviceErrors.h

Error codes and Source identity for the NorFlashBlockDevice.

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

Public Types Documentation

SolidSyslogNorFlashBlockDeviceErrors

Detail codes for events whose Source is SolidSyslogNorFlashBlockDeviceErrorSource.

enum SolidSyslogNorFlashBlockDeviceErrors {
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_NULL_CONFIG,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_NULL_FLASH,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_BLOCKS_OUTSIDE_FLASH,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_BLOCK_SIZE_UNAVAILABLE,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_VERIFY_FAILED,
    SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_MAX
};

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


Public Attributes Documentation

SolidSyslogNorFlashBlockDeviceErrorSource

The identity for events raised by a NorFlashBlockDevice.

const struct SolidSyslogErrorSource SolidSyslogNorFlashBlockDeviceErrorSource;

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


Public Functions Documentation

SolidSyslogNorFlashBlockDeviceErrors_Name

The detail's name, read beside the category's: VERIFY_FAILED for SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_ERROR_VERIFY_FAILED.

const char * SolidSyslogNorFlashBlockDeviceErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogNorFlashBlockDeviceErrors.h