libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
status_code.h File Reference

File contains enum class for status codes. More...

#include "libmicroemu/types.h"
#include <cstdlib>
#include <string_view>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  libmicroemu
 The libmicroemu namespace contains all classes and functions of the libmicroemu which are public.
 

Enumerations

enum class  libmicroemu::StatusCode : u32 {
  libmicroemu::kSuccess = 0x0U , libmicroemu::kError = 0x1U , libmicroemu::kUnexpected = 0x1002U , libmicroemu::kUnsuporrted = 0x1003U ,
  libmicroemu::kNotImplemented = 0x1004U , libmicroemu::kOutOfRange = 0x2001U , libmicroemu::kIteratorExhausted = 0x2002U , libmicroemu::kBufferTooSmall = 0x2003U ,
  libmicroemu::kOpenFileFailed = 0x2004U , libmicroemu::kMemInaccesible = 0x3001U , libmicroemu::kMemWriteNotAllowed = 0x3002U , libmicroemu::kDecoderUnknownOpCode = 0x4001U ,
  libmicroemu::kDecoderUnpredictable = 0x4002U , libmicroemu::kDecoderUndefined = 0x4003U , libmicroemu::kExecutorUnpredictable = 0x5001U , libmicroemu::kExecutorUndefined = 0x5002U ,
  libmicroemu::kExecutorExitWithError = 0x5003U , libmicroemu::kElfNotValid = 0x6001U , libmicroemu::kElfWrongHeader = 0x6002U , libmicroemu::kUsageFault = 0x7001U ,
  libmicroemu::kMaxInstructionsReached = 0x8001U
}
 Enum representing various status codes used throughout the system. More...
 

Functions

static std::string_view libmicroemu::StatusCodeToString (const StatusCode &status_code) noexcept
 Converts a status code to a string.
 

Detailed Description

File contains enum class for status codes.