📄 rcsdpaal2rxapiif.h
字号:
/* * FILENAME RcSdpAal2RxApi.h * * COMMENTS This file contains the Extract Space and Merge Space Register Definitions. */ /* * Copyright (c) 2000, 2001 C-Port * Corporation * All Rights Reserved * * The information contained in this file * is confidential and proprietary. * Any reproduction, use or disclosure, in * whole or in part, of this * program, including any attempt to * obtain a human-readable version of this * program, without the express, prior * written consent of C-Port * Corporation is strictly prohibited. */#ifndef RCSDPAAL2RXAPI_H#define RCSDPAAL2RXAPI_H/* Start: Defines for RxSDP */typedef struct { int8u cpsHdrLen; int8u cpsPayloadLen; int8u pad1[2]; int8u cid; /* Channel ID */ int8u li; /* Length Indicator */ int8u uui; /* User-to-User Indication */ int8u cpsPckComplete; /* Indication of a complete CPS packet */ int8u goodCpsPacket; /* Indication of good/bad (1/0) CPS packets */ int8u crc5Indicator; /* Indication of success/failure (0/1) of the CRC5 */ int8u endOfCell; /* End of Cell Signalling */ int8u extractAvailFlag; /* Indicates availability of extractspace */} AAL2_RX_EXTRACT;/* Finish: Defines for RxSDP *//* Start: Defines for TxSDP */typedef struct { int8u offsetInfo : 6; /* Offset Information : OSF(STF) + Partial Header or Partial Payload */ int8u headerFlag : 2; /* Two bit header flag */} STF_BYTE; typedef union { STF_BYTE bits; int8u ibyte;} FIRST_BYTE; typedef struct { FIRST_BYTE first_byte; int8u cidPart; /* CID Value present in the partial header */ int8u liUuiPart; /* LI_UUI Value present in the partial header */ int8u pad1; /* Unused Field 1 */ int8u stfOffset; /* Offset field from STF */ int8u pad2; /* Unused Field 2 */ int16u pad3; /* Unused Field 3 */ int32u payLoadWord1; /* Partial Payload Word 1 */ int32u payLoadWord2; /* Partial Payload Word 2 */ int32u payLoadWord3; /* Partial Payload Word 3 */ int32u payLoadWord4; /* Partial Payload Word 4 */ int32u cellPayLoadAddress; /* Address of Cell Payload */} AAL2_RX_MERGE;/* Finish: Defines for TxSDP *//* Defines required for TxSDP code */#define TXSTATUS ((int) &((SdpTxCregs*)NULL)->txStatus)#define AAL2_RX_RC_OWN_FLG 0x80#define MERGE ((int) &((SdpTxCregs*)NULL)->merge)#define AAL2_MERGE_OFFSET(param) (MERGE + (int) &((AAL2_RX_MERGE *)NULL)->param)#define END_OF_CELL_MESSAGE 0x100#define CellByteCnt Ireg2/* Defines required for RxSDP code */#define RXSTATUS ((int) &((SdpRxCregs*)NULL)->rxStatus)#define EXTRACT ((int) &((SdpRxCregs*)NULL)->extract)#define EXTRACT_SPACE_OFFSET(param) (EXTRACT + (int) &((AAL2_RX_EXTRACT *)NULL)->param)#define CellByteCnt Ireg2#define COUNTER Ireg0#define TEMP Ireg1#define CPS_HEADER_LEN Ireg2#define PARTIAL_PAYLOAD_LEN Ireg3#define CID_IREG Ireg4#define LI_IREG Ireg5#define UUI_IREG Ireg6#define HEC_IREG Ireg7#define NEW_CELL Ireg9typedef volatile struct _Aal2RxByteCtrlSpc { int32u reserved[2];} Aal2RxByteCtrlSpc;typedef volatile struct _Aal2TxByteCtrlSpc { int32u reserved1[2];} Aal2TxByteCtrlSpc;#endif /* RCSDPAAL2API_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -