hbDSPRpcCmd

typedef enum {
  // Naming rules: B means begin, E means end

  // [0x0, 0x400) reserved for framework
  HB_DSP_RPC_CMD_R_B = 0x0,
  HB_DSP_RPC_CMD_PING = HB_DSP_RPC_CMD_R_B,
  HB_DSP_RPC_CMD_CONFIG = 0x01,
  HB_DSP_RPC_CMD_R_E = 0x3ff,

  // [0x400, 0x800) for neural network operators
  HB_DSP_RPC_CMD_NN_B = 0x400,
  HB_DSP_RPC_CMD_NN_E = 0x7ff,

  // [0x800, 0xfff) for cv operators
  HB_DSP_RPC_CMD_CV_B = 0x800,
  HB_DSP_RPC_CMD_CV_E = 0xfff,

  // [0x1000, 0x13ff) for hpl operators
  HB_DSP_RPC_CMD_HPL_B = 0x1000,
  HB_DSP_RPC_CMD_HPL_E = 0x13ff,

  // [0x1400, 0xffff] for custom purpose
  HB_DSP_RPC_CMD_BUTT = 0xffff
} hbDSPRpcCmd;

DSP operator command enumeration.

  • Member

    Member NameDescription
    HB_DSP_RPC_CMD_R_BInside command
    HB_DSP_RPC_CMD_CONFIGInside command
    HB_DSP_RPC_CMD_R_EInside command
    HB_DSP_RPC_CMD_NN_BNN operator start command
    HB_DSP_RPC_CMD_NN_ENN operator termination command
    HB_DSP_RPC_CMD_CV_BCV operator start command
    HB_DSP_RPC_CMD_CV_ECV operator termination command
    HB_DSP_RPC_CMD_HPL_BHPL operator start command
    HB_DSP_RPC_CMD_HPL_EHPL operator termination command
    HB_DSP_RPC_CMD_BUTTOperator termination command