Enum EspCode

Source
#[repr(u16)]
pub enum EspCode {
Show 103 variants ESP_FAIL = 65_535, ESP_OK = 0, ESP_ERR_NO_MEM = 257, ESP_ERR_INVALID_ARG = 258, ESP_ERR_INVALID_STATE = 259, ESP_ERR_INVALID_SIZE = 260, ESP_ERR_NOT_FOUND = 261, ESP_ERR_NOT_SUPPORTED = 262, ESP_ERR_TIMEOUT = 263, ESP_ERR_INVALID_RESPONSE = 264, ESP_ERR_INVALID_CRC = 265, ESP_ERR_INVALID_VERSION = 266, ESP_ERR_INVALID_MAC = 267, ESP_ERR_NOT_FINISHED = 268, ESP_ERR_NOT_ALLOWED = 269, ESP_ERR_NVS_BASE = 4_352, ESP_ERR_NVS_NOT_INITIALIZED = 4_353, ESP_ERR_NVS_NOT_FOUND = 4_354, ESP_ERR_NVS_TYPE_MISMATCH = 4_355, ESP_ERR_NVS_READ_ONLY = 4_356, ESP_ERR_NVS_NOT_ENOUGH_SPACE = 4_357, ESP_ERR_NVS_INVALID_NAME = 4_358, ESP_ERR_NVS_INVALID_HANDLE = 4_359, ESP_ERR_NVS_REMOVE_FAILED = 4_360, ESP_ERR_NVS_KEY_TOO_LONG = 4_361, ESP_ERR_NVS_PAGE_FULL = 4_362, ESP_ERR_NVS_INVALID_STATE = 4_363, ESP_ERR_NVS_INVALID_LENGTH = 4_364, ESP_ERR_NVS_NO_FREE_PAGES = 4_365, ESP_ERR_NVS_VALUE_TOO_LONG = 4_366, ESP_ERR_NVS_PART_NOT_FOUND = 4_367, ESP_ERR_NVS_NEW_VERSION_FOUND = 4_368, ESP_ERR_NVS_XTS_ENCR_FAILED = 4_369, ESP_ERR_NVS_XTS_DECR_FAILED = 4_370, ESP_ERR_NVS_XTS_CFG_FAILED = 4_371, ESP_ERR_NVS_XTS_CFG_NOT_FOUND = 4_372, ESP_ERR_NVS_ENCR_NOT_SUPPORTED = 4_373, ESP_ERR_NVS_KEYS_NOT_INITIALIZED = 4_374, ESP_ERR_NVS_CORRUPT_KEY_PART = 4_375, ESP_ERR_NVS_CONTENT_DIFFERS = 4_376, ESP_ERR_NVS_WRONG_ENCRYPTION = 4_377, ESP_ERR_ULP_BASE = 4_608, ESP_ERR_ULP_SIZE_TOO_BIG = 4_609, ESP_ERR_ULP_INVALID_LOAD_ADDR = 4_610, ESP_ERR_ULP_DUPLICATE_LABEL = 4_611, ESP_ERR_ULP_UNDEFINED_LABEL = 4_612, ESP_ERR_ULP_BRANCH_OUT_OF_RANGE = 4_613, ESP_ERR_OTA_BASE = 5_376, ESP_ERR_OTA_PARTITION_CONFLICT = 5_377, ESP_ERR_OTA_SELECT_INFO_INVALID = 5_378, ESP_ERR_OTA_VALIDATE_FAILED = 5_379, ESP_ERR_OTA_SMALL_SEC_VER = 5_380, ESP_ERR_OTA_ROLLBACK_FAILED = 5_381, ESP_ERR_OTA_ROLLBACK_INVALID_STATE = 5_382, ESP_ERR_EFUSE = 5_632, ESP_OK_EFUSE_CNT = 5_633, ESP_ERR_EFUSE_CNT_IS_FULL = 5_634, ESP_ERR_EFUSE_REPEATED_PROG = 5_635, ESP_ERR_CODING = 5_636, ESP_ERR_NOT_ENOUGH_UNUSED_KEY_BLOCKS = 5_637, ESP_ERR_DAMAGED_READING = 5_638, ESP_ERR_IMAGE_BASE = 8_192, ESP_ERR_IMAGE_FLASH_FAIL = 8_193, ESP_ERR_IMAGE_INVALID = 8_194, ESP_ERR_WIFI_BASE = 12_288, ESP_ERR_WIFI_NOT_INIT = 12_289, ESP_ERR_WIFI_NOT_STARTED = 12_290, ESP_ERR_WIFI_NOT_STOPPED = 12_291, ESP_ERR_WIFI_IF = 12_292, ESP_ERR_WIFI_MODE = 12_293, ESP_ERR_WIFI_STATE = 12_294, ESP_ERR_WIFI_CONN = 12_295, ESP_ERR_WIFI_NVS = 12_296, ESP_ERR_WIFI_MAC = 12_297, ESP_ERR_WIFI_SSID = 12_298, ESP_ERR_WIFI_PASSWORD = 12_299, ESP_ERR_WIFI_TIMEOUT = 12_300, ESP_ERR_WIFI_WAKE_FAIL = 12_301, ESP_ERR_WIFI_WOULD_BLOCK = 12_302, ESP_ERR_WIFI_NOT_CONNECT = 12_303, ESP_ERR_WIFI_POST = 12_306, ESP_ERR_WIFI_INIT_STATE = 12_307, ESP_ERR_WIFI_STOP_STATE = 12_308, ESP_ERR_WIFI_NOT_ASSOC = 12_309, ESP_ERR_WIFI_TX_DISALLOW = 12_310, ESP_ERR_WIFI_TWT_FULL = 12_311, ESP_ERR_WIFI_TWT_SETUP_TIMEOUT = 12_312, ESP_ERR_WIFI_TWT_SETUP_TXFAIL = 12_313, ESP_ERR_WIFI_TWT_SETUP_REJECT = 12_314, ESP_ERR_WIFI_DISCARD = 12_315, ESP_ERR_WIFI_ROC_IN_PROGRESS = 12_316, ESP_ERR_WIFI_REGISTRAR = 12_339, ESP_ERR_WIFI_WPS_TYPE = 12_340, ESP_ERR_WIFI_WPS_SM = 12_341, ESP_ERR_ESPNOW_BASE = 12_388, ESP_ERR_ESPNOW_NOT_INIT = 12_389, ESP_ERR_ESPNOW_ARG = 12_390, ESP_ERR_ESPNOW_NO_MEM = 12_391, ESP_ERR_ESPNOW_FULL = 12_392, ESP_ERR_ESPNOW_NOT_FOUND = 12_393, ESP_ERR_ESPNOW_INTERNAL = 12_394, ESP_ERR_ESPNOW_EXIST = 12_395, ESP_ERR_ESPNOW_IF = 12_396,
}
Expand description

ESP-IDF error codes mapped to a u16.

Variants§

§

ESP_FAIL = 65_535

Generic failure (-1 as 0xFFFF in two-complement form).

§

ESP_OK = 0

Success (no error).

§

ESP_ERR_NO_MEM = 257

§

ESP_ERR_INVALID_ARG = 258

§

ESP_ERR_INVALID_STATE = 259

§

ESP_ERR_INVALID_SIZE = 260

§

ESP_ERR_NOT_FOUND = 261

§

ESP_ERR_NOT_SUPPORTED = 262

§

ESP_ERR_TIMEOUT = 263

§

ESP_ERR_INVALID_RESPONSE = 264

§

ESP_ERR_INVALID_CRC = 265

§

ESP_ERR_INVALID_VERSION = 266

§

ESP_ERR_INVALID_MAC = 267

§

ESP_ERR_NOT_FINISHED = 268

§

ESP_ERR_NOT_ALLOWED = 269

§

ESP_ERR_NVS_BASE = 4_352

§

ESP_ERR_NVS_NOT_INITIALIZED = 4_353

§

ESP_ERR_NVS_NOT_FOUND = 4_354

§

ESP_ERR_NVS_TYPE_MISMATCH = 4_355

§

ESP_ERR_NVS_READ_ONLY = 4_356

§

ESP_ERR_NVS_NOT_ENOUGH_SPACE = 4_357

§

ESP_ERR_NVS_INVALID_NAME = 4_358

§

ESP_ERR_NVS_INVALID_HANDLE = 4_359

§

ESP_ERR_NVS_REMOVE_FAILED = 4_360

§

ESP_ERR_NVS_KEY_TOO_LONG = 4_361

§

ESP_ERR_NVS_PAGE_FULL = 4_362

§

ESP_ERR_NVS_INVALID_STATE = 4_363

§

ESP_ERR_NVS_INVALID_LENGTH = 4_364

§

ESP_ERR_NVS_NO_FREE_PAGES = 4_365

§

ESP_ERR_NVS_VALUE_TOO_LONG = 4_366

§

ESP_ERR_NVS_PART_NOT_FOUND = 4_367

§

ESP_ERR_NVS_NEW_VERSION_FOUND = 4_368

§

ESP_ERR_NVS_XTS_ENCR_FAILED = 4_369

§

ESP_ERR_NVS_XTS_DECR_FAILED = 4_370

§

ESP_ERR_NVS_XTS_CFG_FAILED = 4_371

§

ESP_ERR_NVS_XTS_CFG_NOT_FOUND = 4_372

§

ESP_ERR_NVS_ENCR_NOT_SUPPORTED = 4_373

§

ESP_ERR_NVS_KEYS_NOT_INITIALIZED = 4_374

§

ESP_ERR_NVS_CORRUPT_KEY_PART = 4_375

§

ESP_ERR_NVS_CONTENT_DIFFERS = 4_376

§

ESP_ERR_NVS_WRONG_ENCRYPTION = 4_377

§

ESP_ERR_ULP_BASE = 4_608

§

ESP_ERR_ULP_SIZE_TOO_BIG = 4_609

§

ESP_ERR_ULP_INVALID_LOAD_ADDR = 4_610

§

ESP_ERR_ULP_DUPLICATE_LABEL = 4_611

§

ESP_ERR_ULP_UNDEFINED_LABEL = 4_612

§

ESP_ERR_ULP_BRANCH_OUT_OF_RANGE = 4_613

§

ESP_ERR_OTA_BASE = 5_376

§

ESP_ERR_OTA_PARTITION_CONFLICT = 5_377

§

ESP_ERR_OTA_SELECT_INFO_INVALID = 5_378

§

ESP_ERR_OTA_VALIDATE_FAILED = 5_379

§

ESP_ERR_OTA_SMALL_SEC_VER = 5_380

§

ESP_ERR_OTA_ROLLBACK_FAILED = 5_381

§

ESP_ERR_OTA_ROLLBACK_INVALID_STATE = 5_382

§

ESP_ERR_EFUSE = 5_632

§

ESP_OK_EFUSE_CNT = 5_633

§

ESP_ERR_EFUSE_CNT_IS_FULL = 5_634

§

ESP_ERR_EFUSE_REPEATED_PROG = 5_635

§

ESP_ERR_CODING = 5_636

§

ESP_ERR_NOT_ENOUGH_UNUSED_KEY_BLOCKS = 5_637

§

ESP_ERR_DAMAGED_READING = 5_638

§

ESP_ERR_IMAGE_BASE = 8_192

§

ESP_ERR_IMAGE_FLASH_FAIL = 8_193

§

ESP_ERR_IMAGE_INVALID = 8_194

§

ESP_ERR_WIFI_BASE = 12_288

§

ESP_ERR_WIFI_NOT_INIT = 12_289

§

ESP_ERR_WIFI_NOT_STARTED = 12_290

§

ESP_ERR_WIFI_NOT_STOPPED = 12_291

§

ESP_ERR_WIFI_IF = 12_292

§

ESP_ERR_WIFI_MODE = 12_293

§

ESP_ERR_WIFI_STATE = 12_294

§

ESP_ERR_WIFI_CONN = 12_295

§

ESP_ERR_WIFI_NVS = 12_296

§

ESP_ERR_WIFI_MAC = 12_297

§

ESP_ERR_WIFI_SSID = 12_298

§

ESP_ERR_WIFI_PASSWORD = 12_299

§

ESP_ERR_WIFI_TIMEOUT = 12_300

§

ESP_ERR_WIFI_WAKE_FAIL = 12_301

§

ESP_ERR_WIFI_WOULD_BLOCK = 12_302

§

ESP_ERR_WIFI_NOT_CONNECT = 12_303

§

ESP_ERR_WIFI_POST = 12_306

§

ESP_ERR_WIFI_INIT_STATE = 12_307

§

ESP_ERR_WIFI_STOP_STATE = 12_308

§

ESP_ERR_WIFI_NOT_ASSOC = 12_309

§

ESP_ERR_WIFI_TX_DISALLOW = 12_310

§

ESP_ERR_WIFI_TWT_FULL = 12_311

§

ESP_ERR_WIFI_TWT_SETUP_TIMEOUT = 12_312

§

ESP_ERR_WIFI_TWT_SETUP_TXFAIL = 12_313

§

ESP_ERR_WIFI_TWT_SETUP_REJECT = 12_314

§

ESP_ERR_WIFI_DISCARD = 12_315

§

ESP_ERR_WIFI_ROC_IN_PROGRESS = 12_316

§

ESP_ERR_WIFI_REGISTRAR = 12_339

§

ESP_ERR_WIFI_WPS_TYPE = 12_340

§

ESP_ERR_WIFI_WPS_SM = 12_341

§

ESP_ERR_ESPNOW_BASE = 12_388

§

ESP_ERR_ESPNOW_NOT_INIT = 12_389

§

ESP_ERR_ESPNOW_ARG = 12_390

§

ESP_ERR_ESPNOW_NO_MEM = 12_391

§

ESP_ERR_ESPNOW_FULL = 12_392

§

ESP_ERR_ESPNOW_NOT_FOUND = 12_393

§

ESP_ERR_ESPNOW_INTERNAL = 12_394

§

ESP_ERR_ESPNOW_EXIST = 12_395

§

ESP_ERR_ESPNOW_IF = 12_396

Trait Implementations§

Source§

impl Clone for EspCode

Source§

fn clone(&self) -> EspCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Format for EspCode

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl PartialEq for EspCode

Source§

fn eq(&self, other: &EspCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u16> for EspCode

Source§

type Error = TryFromPrimitiveError<EspCode>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for EspCode

Source§

impl Copy for EspCode

Source§

impl StructuralPartialEq for EspCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.