📄 message.h
字号:
/*============================================================================
____________________________________________________________________________
______________________________________________
SSSS M M CCCC Standard Microsystems Corporation
S MM MM SSSS C Austin Design Center
SSS M M M S C 11000 N. Mopac Expressway
S M M SSS C Stonelake Bldg. 6, Suite 500
SSSS M M S CCCC Austin, Texas 78759
SSSS ______________________________________________
____________________________________________________________________________
Copyright(C) 1999, Standard Microsystems Corporation
All Rights Reserved.
This program code listing is proprietary to SMSC and may not be copied,
distributed, or used without a license to do so. Such license may have
Limited or Restricted Rights. Please refer to the license for further
clarification.
____________________________________________________________________________
Notice: The program contained in this listing is a proprietary trade
secret of SMSC, Hauppauge, New York, and is copyrighted
under the United States Copyright Act of 1976 as an unpublished work,
pursuant to Section 104 and Section 408 of Title XVII of the United
States code. Unauthorized copying, adaption, distribution, use, or
display is prohibited by this law.
____________________________________________________________________________
Use, duplication, or disclosure by the Government is subject to
restrictions as set forth in subparagraph(c)(1)(ii) of the Rights
in Technical Data and Computer Software clause at DFARS 52.227-7013.
Contractor/Manufacturer is Standard Microsystems Corporation,
80 Arkay Drive, Hauppauge, New York, 1178-8847.
____________________________________________________________________________
____________________________________________________________________________
message.h - messaging definitions for MinimOS.
____________________________________________________________________________
comments tbd
____________________________________________________________________________
Revision History
Date Who Comment
________ ___ _____________________________________________________________
05/31/00 tbh initial version
08/29/01 tbh added k_msg_transaction_done
============================================================================*/
//------------------------------------------------------------------------------
// message identifier
typedef uint16 t_message_id;
//------------------------------------------------------------------------------
// message opaque type
typedef struct s_message
{
t_message_id id;
t_memory_ref arg;
} t_message, *t_message_ref;
//------------------------------------------------------------------------------
#define k_msg_initialize 0xF000
#define k_msg_kill 0xF001 // unused...
#define k_msg_usbrst 0xF002
#define k_msg_resume 0xF003
#define k_msg_suspend 0xF004
#define k_msg_source_payload 0xF005
#define k_msg_sink_payload 0xF006
// for future use...
#define k_msg_configured 0xF007
#define k_msg_deconfigured 0xF008
#define k_msg_transaction_done 0xF009
#define k_msg_query_self_pwrd 0xF020
#define k_msg_query_hub_enable 0xF021
#define k_msg_query_vid 0xF022
#define k_msg_query_pid 0xF023
#define k_msg_query_ver 0xF024
#define k_msg_query_gpio_dplus 0xF025
#define k_msg_query_string 0xF026
// for dfu operability...
#define k_msg_bootstrap 0xF027
//------------------------------------------------------------------------------
// prototypes
t_message_id message_rd_id(t_message_ref msgref) reentrant;
void message_wr_id(t_message_ref msgref, t_message_id id) reentrant;
t_memory_ref message_rd_arg(t_message_ref msgref) reentrant;
void message_wr_arg(t_message_ref msgref, t_memory_ref arg) reentrant;
//---eof------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -