?? pb_fmb.h
字號:
USIGN8 medium_red; /* medium redundancy */
USIGN16 tsl; /* slot time */
USIGN16 min_tsdr; /* min. station delay time resp. */
USIGN16 max_tsdr; /* max. station delay time resp. */
USIGN8 tqui; /* quiet time */
USIGN8 tset; /* setup time */
USIGN32 ttr; /* target token rotation time */
USIGN8 g; /* gap update factor */
PB_BOOL in_ring_desired; /* active or passive station */
USIGN8 hsa; /* highest station address */
USIGN8 max_retry_limit; /* max. retry limit */
} T_FMB_SET_BUSPARAMETER_REQ;
/*****************************************************************************/
/* FMB-Read-FDL-Busparameter */
/*****************************************************************************/
typedef struct _T_FMB_READ_BUSPARAMETER_CNF
{
USIGN8 loc_add; /* local station */
USIGN8 loc_segm; /* local segment */
USIGN8 baud_rate; /* baud rate */
USIGN8 medium_red; /* medium redundancy */
USIGN16 tsl; /* slot time */
USIGN16 min_tsdr; /* min. station delay time resp. */
USIGN16 max_tsdr; /* max. station delay time resp. */
USIGN8 tqui; /* quiet time */
USIGN8 tset; /* setup time */
USIGN32 ttr; /* target token rotation time */
USIGN8 g; /* gap update factor */
PB_BOOL in_ring_desired; /* active or passive station */
USIGN8 hsa; /* highest station address */
USIGN8 max_retry_limit; /* max. retry limit */
USIGN16 reserved; /* not used */
USIGN8 ident[202]; /* FDL-Ident-String */
} T_FMB_READ_BUSPARAMETER_CNF;
/*****************************************************************************/
/* FMB-Set-Value Service */
/*****************************************************************************/
#if !defined (__PB_FM7__)
/* FDL-Variable-Identifiers ------------------------------------------------ */
#define ID_TS 1
#define ID_BAUD_RATE 2
#define ID_MEDIUM_RED 3
#define ID_HW_RELEASE 4
#define ID_SW_RELEASE 5
#define ID_TSL 6
#define ID_MIN_TSDR 7
#define ID_MAX_TSDR 8
#define ID_TQUI 9
#define ID_TSET 10
#define ID_TTR 11
#define ID_G 12
#define ID_IN_RING_DESIRED 13
#define ID_HSA 14
#define ID_MAX_RETRY_LIMIT 15
#define ID_TRR 16
#define ID_LAS 17
#define ID_GAPL 18
/* Statistic-Counter-Identifiers ------------------------------------------- */
#define ID_FRAME_SENT_COUNT 20
#define ID_RETRY_COUNT 21
#define ID_SD_COUNT 22
#define ID_SD_ERROR_COUNT 23
#endif
typedef struct _T_FMB_SET_VALUE_REQ
{
USIGN8 id; /* value identifier */
USIGN8 length; /* # of values in byte */
/* USIGN8 value[length]; list of values */
} T_FMB_SET_VALUE_REQ;
/*****************************************************************************/
/* FMB-Read-Value Service */
/*****************************************************************************/
typedef struct _T_FMB_READ_VALUE_REQ
{
USIGN8 id; /* value identifier */
USIGN8 dummy; /* alignment */
} T_FMB_READ_VALUE_REQ;
typedef struct _T_FMB_READ_VALUE_CNF
{
USIGN8 id; /* value identifier */
USIGN8 length; /* # of values in byte */
/* USIGN8 value[length]; list of values */
} T_FMB_READ_VALUE_CNF;
/*****************************************************************************/
/* FMB-LSAP-Status Service */
/*****************************************************************************/
typedef struct _T_FMB_LSAP_STATUS_REQ
{
USIGN8 lsap; /* desired LSAP */
USIGN8 dummy; /* alignment byte */
} T_FMB_LSAP_STATUS_REQ;
typedef struct _T_FMB_LSAP_STATUS_CNF
{
USIGN8 access; /* station address or all */
USIGN8 addr_extension; /* segment number */
USIGN8 sda; /* SDA */
USIGN8 sdn; /* SDN */
USIGN8 srd; /* SRD */
USIGN8 csrd; /* CSRD */
} T_FMB_LSAP_STATUS_CNF;
/*****************************************************************************/
/* FMB-Validate-Master Service */
/*****************************************************************************/
typedef struct _T_FMB_VALIDATE_MASTER_REQ
{
USIGN8 rem_add; /* desired remote station */
USIGN8 dummy; /* alignment byte */
} T_FMB_VALIDATE_MASTER_REQ;
/*****************************************************************************/
/* FMB-Get-Live-List Service */
/*****************************************************************************/
/* Status of Stations in Live-List ----------------------------------------- */
#define PASSIVE 0x00
#define ACTIVE_NOT_READY 0x01
#define ACTIVE_READY 0x02
#define ACTIVE_IN_RING 0x03
typedef struct _T_FMB_LIVE_LIST
{
USIGN8 station; /* station number */
USIGN8 status; /* current station of station */
} T_FMB_LIVE_LIST;
typedef struct _T_FMB_GET_LIVE_LIST_CNF
{
USIGN8 dummy; /* alignment */
USIGN8 no_of_elements; /* # of live list elements */
/* T_FMB_LIVE_LIST live_list[no_of_elements]; list of live list elements */
} T_FMB_GET_LIVE_LIST_CNF;
/****************************************************************************/
/* FMB-Event-Management */
/****************************************************************************/
#define FM2_FAULT_ADDRESS 0x01 /* duplicate address recognized */
#define FM2_FAULT_PHY 0x02 /* phys.layer is malfunctioning */
#define FM2_FAULT_TTO 0x03 /* time out on bus detected */
#define FM2_FAULT_SYN 0x04 /* no receiver synchronization */
#define FM2_FAULT_OUT_OF_RING 0x05 /* station out of ring */
#define FM2_GAP_EVENT 0x06 /* new station in ring */
/* Additional FM2-Events (Error messages from ASPC2) ---------------------- */
#define FM2_MAC_ERROR 0x13 /* fatal MAC error */
#define FM2_HW_ERROR 0x14 /* fatal HW error */
typedef struct _T_FMB_FM2_EVENT_IND
{
USIGN16 reason; /* reason code */
} T_FMB_FM2_EVENT_IND;
#pragma warning (disable : 4103) /* used #pragma pack to reset alignment */
#ifdef WIN32
#pragma pack(pop)
#else
#pragma pack()
#endif
#pragma warning (default : 4103)
#endif /* __PB_FMB__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -