📄 umi.h
字号:
#define MC_MAN_ACTIVATE_CFM 0x1006 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 6)*/
#define MC_MAN_NETWORK_EVENT_IND 0x3007 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 7)*/
#define UM_MAN_NETWORK_EVENT_RES 0x2007 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 7)*/
#define MC_MAN_CONNECTION_EVENT_IND 0x3008 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 8)*/
#define UM_MAN_CONNECTION_EVENT_RES 0x2008 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 8)*/
#define UM_MAN_DISCONNECT_REQ 0x0009 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 9)*/
#define MC_MAN_DISCONNECT_CFM 0x1009 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 9)*/
#define UM_MAN_GET_RSSI_REQ 0x000A /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 10)*/
#define MC_MAN_GET_RSSI_CFM 0x100A /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 10)*/
#define UM_MAN_RESET_REQ 0x000B /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 11)*/
#define MC_MAN_RESET_CFM 0x100B /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 11)*/
#define UM_MAN_POWER_MODE_REQ 0x000C /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 12)*/
#define MC_MAN_POWER_MODE_CFM 0x100C /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 12)*/
#define UM_MAN_SET_RX_RSSI_REQ 0x000D /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 13)*/
#define MC_MAN_SET_RX_RSSI_CFM 0x100D /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 13)*/
#define UM_MAN_SET_KEY_REQ 0x000E /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 14)*/
#define MC_MAN_SET_KEY_CFM 0x100E /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 14)*/
#define UM_MAN_CLEAR_KEY_REQ 0x000F /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 15)*/
#define MC_MAN_CLEAR_KEY_CFM 0x100F /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 15)*/
#define MC_MAN_SECURITY_ALERT_IND 0x3010 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 16)*/
#define UM_MAN_SECURITY_ALERT_RES 0x2010 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 16)*/
#define UM_MAN_GET_802_11_STATS_REQ 0x0011 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 17)*/
#define MC_MAN_GET_802_11_STATS_CFM 0x1011 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 17)*/
#define UM_MAN_CLEAR_STATS_REQ 0x0012 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 18)*/
#define MC_MAN_CLEAR_STATS_CFM 0x1012 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 18)*/
// Only used in STA & ASIC build
// Used to take the STA out of Deep Sleep States where it is running with Slow Clock
#define MC_MAN_STA_WAKEUP_IND 0x3013 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 19)*/
#define UM_MAN_STA_WAKEUP_RES 0x2013 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 19)*/
// Only used in STA & ASIC build
#define MC_MAN_SLEEP_IND 0x3014 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 20)*/
#define UM_MAN_SLEEP_RES 0x2014 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 20)*/
#define UM_MAN_GET_GEN_STATS_REQ 0x0015 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 21)*/
#define MC_MAN_GET_GEN_STATS_CFM 0x1015 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 21)*/
#define UM_MAN_CLEAR_GEN_STATS_REQ 0x0016 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 22)*/
#define MC_MAN_CLEAR_GEN_STATS_CFM 0x1016 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 22)*/
#define UM_MAN_POWER_OFF_REQ 0x0017 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 23)*/
#define MC_MAN_POWER_OFF_CFM 0x1017 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 23)*/
#define UM_MAN_LINK_MEASUREMENT_REQ 0x0018 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 24)*/
#define MC_MAN_LINK_MEASUREMENT_CFM 0x1018 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 24)*/
#define MC_MAN_LINK_MEAS_REPORT_IND 0x3018 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 24)*/
#define UM_MAN_LINK_MEAS_REPORT_RES 0x2018 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 24)*/
#define UM_MAN_TX_NEIGHBOR_REPORT_REQ 0x0019 /*(MSG_REQ + MSG_UMI_COMP + UMI_MAN_MSG + 25)*/
#define MC_MAN_TX_NEIGHBOR_REPORT_CFM 0x1019 /*(MSG_CFM + MSG_UMI_COMP + UMI_MAN_MSG + 25)*/
#define MC_MAN_RX_NEIGHBOR_REPORT_IND 0x3019 /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 25)*/
#define UM_MAN_RX_NEIGHBOR_REPORT_RES 0x2019 /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 25)*/
#define MC_MAN_RX_MEAS_PILOT_IND 0x301A /*(MSG_IND + MSG_UMI_COMP + UMI_MAN_MSG + 26)*/
#define UM_MAN_RX_MEAS_PILOT_RES 0x201A /*(MSG_RES + MSG_UMI_COMP + UMI_MAN_MSG + 26)*/
#define UM_DBG_INPUT_REQ 0x00C2 /*(MSG_REQ + MSG_UMI_COMP + UMI_DBG_MSG + 2)*/
#define MC_DBG_INPUT_CFM 0x10C2 /*(MSG_CFM + MSG_UMI_COMP + UMI_DBG_MSG + 2)*/
#define MC_DBG_OUTPUT_IND 0x30C3 /*(MSG_IND + MSG_UMI_COMP + UMI_DBG_MSG + 3)*/
#define UM_DBG_OUTPUT_RES 0x20C3 /*(MSG_RES + MSG_UMI_COMP + UMI_DBG_MSG + 3)*/
// jkim - begin
#define UM_UWA_CLEAR_STATS_REQ 0x00C6 /*(MSG_REQ + MSG_UMI_COMP + UMI_DBG_MSG + 6)*/
#define MC_UWA_CLEAR_STATS_CFM 0x10C6 /*(MSG_CFM + MSG_UMI_COMP + UMI_DBG_MSG + 6)*/
#define UM_UWA_FREEZE_STATS_REQ 0x00C7 /*(MSG_REQ + MSG_UMI_COMP + UMI_DBG_MSG + 7)*/
#define MC_UWA_FREEZE_STATS_CFM 0x10C7 /*(MSG_CFM + MSG_UMI_COMP + UMI_DBG_MSG + 7)*/
#define UM_UWA_UNFREEZE_STATS_REQ 0x00C8 /*(MSG_REQ + MSG_UMI_COMP + UMI_DBG_MSG + 8)*/
#define MC_UWA_UNFREEZE_STATS_CFM 0x10C8 /*(MSG_CFM + MSG_UMI_COMP + UMI_DBG_MSG + 8)*/
// jkim - end
#define UM_DAT_TXDATA_REQ 0x0040 /*(MSG_REQ + MSG_UMI_COMP + UMI_DAT_MSG + 0)*/
#define MC_DAT_TXDATA_CFM 0x1040 /*(MSG_CFM + MSG_UMI_COMP + UMI_DAT_MSG + 0)*/
#define MC_DAT_RXDATA_IND 0x3041 /*(MSG_IND + MSG_UMI_COMP + UMI_DAT_MSG + 1)*/
#define UM_DAT_RXDATA_RES 0x2041 /*(MSG_RES + MSG_UMI_COMP + UMI_DAT_MSG + 1)*/
#define MC_DAT_ALLOC_BUFFER_IND 0x3042 /*(MSG_IND + MSG_UMI_COMP + UMI_DAT_MSG + 2)*/
#define UM_DAT_ALLOC_BUFFER_RES 0x2042 /*(MSG_RES + MSG_UMI_COMP + UMI_DAT_MSG + 2)*/
#define MC_DAT_FREE_BUFFER_IND 0x3043 /*(MSG_IND + MSG_UMI_COMP + UMI_DAT_MSG + 3)*/
#define UM_DAT_FREE_BUFFER_RES 0x2043 /*(MSG_RES + MSG_UMI_COMP + UMI_DAT_MSG + 3)*/
#define MC_MEM_COPY_FROM_MAC_IND 0x3080 /*(MSG_IND + MSG_UMI_COMP + UMI_MEM_MSG + 0)*/
#define UM_MEM_COPY_FROM_MAC_RES 0x2080 /*(MSG_RES + MSG_UMI_COMP + UMI_MEM_MSG + 0)*/
#define MC_MEM_COPY_TO_MAC_IND 0x3081 /*(MSG_IND + MSG_UMI_COMP + UMI_MEM_MSG + 1)*/
#define UM_MEM_COPY_TO_MAC_RES 0x2081 /*(MSG_RES + MSG_UMI_COMP + UMI_MEM_MSG + 1)*/
/***************************************************************************/
/*** Management Messages ***/
/***************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_RESET_REQ
**
** PARAMETERS none
**
** DESCRIPTION This message should be sent to disable the MAC. After sending
** the message, ownership of the message buffer passes to the MAC
** which will respond in due course to indicate the result of the
** operation. This message is will only be successful when the
** MAC is in the UMI_MAC_ENABLED state. After receiving the
** message, the MAC will abort all transmit, receive or scan
** operations in progress and return any associated buffers.
**
****************************************************************************/
/***************************************************************************
**
** NAME MC_MAN_RESET_CFM
**
** PARAMETERS u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_NOT_ENABLED
**
** DESCRIPTION Response to request to reset the MAC.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
} POSTPACK UMI_RESET;
/***************************************************************************
**
** NAME UMI_POWER_MODE_REQ
**
** PARAMETERS u16PowerMode MIB_PSCM_CAM (0) - Always powered on
** MIB_PSCM_PS (1) - Power saving
** 2 - Dynamic selection <--- REVISIT: Remove magic number
**
** DESCRIPTION Station Only, change the Power saving mode request.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
uint16 u16PowerMode;
uint8 bTaskID; // CS - changed from K_TASKID, 12/17/04
} POSTPACK UMI_POWER_MODE;
/***************************************************************************
**
** NAME UMI_POWER_MODE_CFM
**
** PARAMETERS u16PowerMode MIB_PSCM_CAM (0) - Always powered on
** MIB_PSCM_PS (1) - Power saving
** 2 - Dynamic selection <--- REVISIT: Remove magic number
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_NOT_ENABLED
**
**
** DESCRIPTION Station Only, change the Power saving mode confirmation.
**
****************************************************************************/
/* UMI_POWER_MODE (above) */
/***************************************************************************
**
** NAME MC_MAN_READY_IND
**
** PARAMETERS u32Magic if UMI_READY_MAGIC, indicates following parameters
** (little endian) are valid else it's legacy and they're not
**
** u32MibSoftwareConfig The MIB variable MIB_SOFTWARE_CONFIG
** (little endian)
**
** u32BoardStateAddressOffset The address offset in shared RAM where the
** (little endian) status of the board can be read
**
** DESCRIPTION Indication to the MAC Client that the MAC has completed its
** initialisation phase and is ready to start or join a network.
**
** The parameters to this message are used by the internal TTPCom
** regression testing system.
**
****************************************************************************/
#define UMI_READY_MAGIC 0x98765432
PREPACK typedef struct
{
uint32 u32Magic;
uint32 u32MibSoftwareConfig;
#if defined(PLATFORM_FPGA_TTPCOM_SINGULLAR)
uint32 u32BoardStateAddressOffset;
#endif
} POSTPACK UMI_READY;
/***************************************************************************
**
** NAME MC_MAN_READY_RES
**
** PARAMETERS none
**
** DESCRIPTION Response to indication
**
****************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_SET_MIB_REQ
**
** PARAMETERS u16ObjectID ID of the MIB Object to be set
** uValue Value to which the MID object should be
** set.
**
** DESCRIPTION A request to the Upper MAC to set the value of a Managed
** Object in the MIB.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16ObjectID; /* ID of the MIB Object to be set */
uint16 u16Status; /* Status of request - confirms only */
MIB_VALUE uValue; /* New value for object */
} POSTPACK UMI_MIB;
/***************************************************************************
**
** NAME MC_MAN_SET_MIB_CFM
**
** PARAMETERS u16ObjectID ID of the MIB Object that was to be set
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_UNKNOWN_OBJECT
** UMI_BAD_VALUE
** UMI_NOT_NOW
** UMI_NOT_SUPPORTED
** UMI_READ_ONLY
** UMI_RATE_MISMATCH
**
** DESCRIPTION Response to set MIB request.
**
****************************************************************************/
/* UMI_MIB (above) */
/***************************************************************************
**
** NAME UM_MAN_GET_MIB_REQ
**
** PARAMETERS u16ObjectID ID of the MIB Object to be retrieved.
**
** DESCRIPTION: This message should be sent to retrieve the value of a
** Managed Object in the MIB.
**
****************************************************************************/
/* UMI_MIB (above) */
/***************************************************************************
**
** NAME MC_MAN_GET_MIB_CFM
**
** PARAMETERS u16ObjectID ID of the MIB Object to be set
** uObject Object data
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_UNKNOWN_OBJECT
** UMI_WRITE_ONLY
**
** DESCRIPTION: Get MIB Object Confirmation.
**
****************************************************************************/
/* UMI_MIB (above) */
/***************************************************************************
**
** NAME UM_MAN_SCAN_REQ
**
** PARAMETERS
**
** DESCRIPTION: This message should be sent to request a scan of all
** available BSSs.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
} POSTPACK UMI_SCAN;
/***************************************************************************
**
** NAME MC_MAN_SCAN_CFM
**
** PARAMETERS u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_BAD_PARAMETER
** UMI_BSS_ALREADY_ACTIVE
** UMI_NOT_ENABLED
** UMI_OUT_OF_MEMORY
**
** DESCRIPTION Confirms the completion of a scan.
**
****************************************************************************/
/* UMI_SCAN */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -