blob: e86db79400a80d0c4022c04ac1a5111a7c36bb38 [file]
// Licensed under the Apache-2.0 license
// SPDX-License-Identifier: Apache-2.0
//! IPC-specific error codes.
use crate::{ErrorCode, ErrorModule};
use pw_status::Error;
/// The IPC error module.
pub const IPC_ERROR: ErrorModule = ErrorModule::new(0x4943); // ascii `IC`
/// The IPC response has a bad length.
pub const IPC_ERROR_RSP_BAD_LEN: ErrorCode = IPC_ERROR.from_pw(1, Error::InvalidArgument);
/// The IPC response is too large.
pub const IPC_ERROR_RSP_TOO_LARGE: ErrorCode = IPC_ERROR.from_pw(2, Error::InvalidArgument);
/// The IPC request is bad.
pub const IPC_ERROR_BAD_REQ: ErrorCode = IPC_ERROR.from_pw(3, Error::InvalidArgument);
/// The IPC request has a bad length.
pub const IPC_ERROR_BAD_REQ_LEN: ErrorCode = IPC_ERROR.from_pw(4, Error::InvalidArgument);
/// The IPC opcode is unknown.
pub const IPC_ERROR_UNKNOWN_OP: ErrorCode = IPC_ERROR.from_pw(5, Error::Unknown);