?? pb_dp.h
字號:
/* OCTET data [data_len]; download data */
} T_DP_DOWNLOAD_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_DOWNLOAD_IND /* MM: req_add --> function_num */
{
USIGN16 data_len; /* 0..DP_MAX_DOWNLOAD_DATA_LEN */
USIGN8 req_add; /* station address DP Master (class 2) */
USIGN8 area_code; /* destination area of download service */
USIGN16 add_offset; /* starting offset within this area */
/* OCTET data [data_len]; download data */
} T_DP_DOWNLOAD_IND;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_DOWNLOAD_RES_CON
{
USIGN16 status; /* OK, DS, NA, RS, RR, UE, TO, FE, */
/* RE, NE, AD, EA, SC, NI, LE */
} T_DP_DOWNLOAD_RES_CON;
/*==========================================================================*/
typedef struct _T_DP_UPLOAD_REQ /* MM: function_num --> rem_add */
{
USIGN8 rem_add; /* station address DP Master (class 1) */
USIGN8 area_code; /* destination area of download service */
USIGN16 add_offset; /* starting offset within this area */
USIGN8 data_len; /* 1..240 */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_UPLOAD_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_UPLOAD_IND /* MM: req_add --> function_num */
{
USIGN8 req_add; /* station address DP Master (class 2) */
USIGN8 area_code; /* destination area of download service */
USIGN16 add_offset; /* starting offset within this area */
USIGN8 data_len; /* 1..240 */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_UPLOAD_IND;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_UPLOAD_RES_CON
{
USIGN16 status; /* OK, DS, NA, RS, RR, UE, TO, FE, */
/* RE, NE, AD, EA, SC, NI, LE */
USIGN16 data_len; /* 1..DP_MAX_UPLOAD_DATA_LEN */
/* OCTET data [data_len]; upload data */
} T_DP_UPLOAD_RES_CON;
/*==========================================================================*/
typedef struct _T_DP_ACT_PARAM_REQ /* MM: function_num --> rem_add */
{
USIGN8 rem_add; /* station address DP Master (class 1) */
USIGN8 area_code; /* DP_AREA_xxx */
USIGN8 activate; /* DP_SLAVE_xxx, DP_BUS_PAR_ACTIVATE, DP_OP_MODE_xxx */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_ACT_PARAM_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_ACT_PARAM_IND /* MM: req_add --> function_num */
{
USIGN8 req_add; /* station address DP Master (class 2) */
USIGN8 area_code; /* DP_AREA_xxx */
USIGN8 activate; /* DP_SLAVE_xxx, DP_BUS_PAR_ACTIVATE, DP_OP_MODE_xxx */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_ACT_PARAM_IND;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_ACT_PARAM_RES_CON
{
USIGN16 status; /* OK, DS, NA, RS, RR, UE, TO, FE, RE, */
/* NE, AD, IP, SC, NI, DI, EA, LE */
} T_DP_ACT_PARAM_RES_CON;
/*==========================================================================*/
typedef struct _T_DP_GET_MASTER_DIAG_REQ /* MM: function_num --> rem_add */
{
USIGN8 rem_add; /* station address DP Master (class 1) */
USIGN8 identifier; /* DP_DIAG_xxx */
} T_DP_GET_MASTER_DIAG_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_GET_MASTER_DIAG_IND /* MM: req_add --> function_num */
{
USIGN8 req_add; /* station address DP Master (class 2) */
USIGN8 identifier; /* DP_DIAG_xxx */
} T_DP_GET_MASTER_DIAG_IND;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_GET_MASTER_DIAG_RES_CON
{
USIGN16 status; /* OK, DS, NA, RS, RR, UE, TO, */
/* FE, RE, NE, AD, IP, EA, LE */
USIGN16 data_len; /* 1..DP_MAX_MASTER_DIAG_DATA_LEN */
/* OCTET diagnostic_data [data_len]; */
} T_DP_GET_MASTER_DIAG_RES_CON;
/*==========================================================================*/
typedef VOID T_DP_GET_SLAVE_DIAG_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_GET_SLAVE_DIAG_CON
{
USIGN16 status; /* OK, NO */
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* SDU alignment byte */
INT16 diag_entries; /* -1..DP_MAX_SLAVE_DIAG_ENTRIES */
USIGN16 diag_data_len; /* 0..DP_MAX_SLAVE_DIAG_DATA_LEN */
/* T_DP_DIAG_DATA diag_data; diag_data_len */
} T_DP_GET_SLAVE_DIAG_CON;
/*--------------------------------------------------------------------------*/
typedef T_DP_GET_SLAVE_DIAG_CON T_DP_GET_SLAVE_DIAG_IND; /* dito */
/*==========================================================================*/
typedef VOID T_DP_DATA_TRANSFER_REQ; /* no SDU */
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_DATA_TRANSFER_CON
{
USIGN16 status; /* OK, NO */
INT16 diag_entries; /* -1..DP_MAX_SLAVE_DIAG_ENTRIES */
} T_DP_DATA_TRANSFER_CON;
/*==========================================================================*/
typedef struct _T_DP_GET_SLAVE_PARAM_REQ
{
USIGN8 identifier; /* DP_SLAVE_PARAM_xxx */
USIGN8 rem_add; /* 0..126 */
} T_DP_GET_SLAVE_PARAM_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_GET_SLAVE_PARAM_CON
{
USIGN16 status; /* OK, NO, IV, NE */
USIGN16 data_len; /* 0..244 */
/* OCTET slave_param_data [data_len]; data_len */
} T_DP_GET_SLAVE_PARAM_CON;
/*==========================================================================*/
typedef struct _T_DP_SET_BUSPARAMETER_REQ
{
USIGN8 bp_flag; /* DP_BP_ERROR_ACTION */
USIGN8 dummy; /* alignment byte */
USIGN16 min_slave_interval; /* 1..2^16-1 [100 micros] */
USIGN16 poll_timeout; /* 1..2^16-1 [1 ms] */
USIGN16 data_control_time; /* 1..2^16-1 [10 ms] */
USIGN16 master_user_data_len; /* 34..DP_MAX_SET_BUSPARAMETER_LEN */
STRINGV master_class2_name [32]; /* DP Master (class 2) vendor name */
/* OCTET master_user_data [0..DP_MAX_SET_BUSPARAMETER_LEN - 34]; */
} T_DP_SET_BUSPARAMETER_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_SET_BUSPARAMETER_CON
{
USIGN16 status; /* OK, IV, NO */
} T_DP_SET_BUSPARAMETER_CON;
/*==========================================================================*/
typedef struct _T_DP_SET_MASTER_PARAM_REQ
{
USIGN8 identifier; /* DP_SET_xxx */
USIGN8 data_len; /* 0..DP_MAX_TELEGRAM_LEN */
/* OCTET data [data_len]; data dependent on identifier */
} T_DP_SET_MASTER_PARAM_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_SET_MASTER_PARAM_CON
{
USIGN16 status; /* OK, IV, NO */
} T_DP_SET_MASTER_PARAM_CON;
/*--------------------------------------------------------------------------*/
/*--- DP DDLM SERVICE STRUCTURES -------------------------------------------*/
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_SLAVE_DIAG_REQ
{
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_SLAVE_DIAG_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_SLAVE_DIAG_CON
{
USIGN16 status; /* OK, DS, NA, RS, UE, NR, RE */
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* PCI alignment byte */
USIGN16 diag_data_len; /* 0..DP_MAX_SLAVE_DIAG_DATA_LEN */
/* OCTET diag_data [diag_data_len]; */
} T_DP_SLAVE_DIAG_CON;
/*==========================================================================*/
typedef struct _T_DP_DATA_EXCHANGE_REQ
{
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* PCI alignment byte */
USIGN16 outp_data_len; /* 0..DP_MAX_OUTPUT_DATA_LEN */
/* OCTET outp_data [outp_data_len]; */
} T_DP_DATA_EXCHANGE_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_DATA_EXCHANGE_CON
{
USIGN16 status; /* OK, DS, NA, RS, RR, UE, RE */
USIGN8 rem_add; /* 0..126 */
PB_BOOL diag_flag; /* DP_TRUE: DP Slave diagnostic data available */
USIGN16 inp_data_len; /* 0..DP_MAX_INPUT_DATA_LEN */
/* OCTET inp_data [inp_data_len]; */
} T_DP_DATA_EXCHANGE_CON;
/*==========================================================================*/
typedef struct _T_DP_RD_INP_REQ
{
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_RD_INP_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_RD_INP_CON
{
USIGN16 status; /* OK, DS, NA, RS, UE, NR, RE */
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* PCI alignment byte */
USIGN16 inp_data_len; /* 0..DP_MAX_INPUT_DATA_LEN */
/* OCTET inp_data [inp_data_len]; */
} T_DP_RD_INP_CON;
/*==========================================================================*/
typedef struct _T_DP_RD_OUTP_REQ
{
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* SDU alignment byte */
} T_DP_RD_OUTP_REQ;
/*--------------------------------------------------------------------------*/
typedef struct _T_DP_RD_OUTP_CON
{
USIGN16 status; /* OK, DS, NA, RS, UE, NR, RE */
USIGN8 rem_add; /* 0..126 */
USIGN8 dummy; /* PCI alignment byte */
USIGN16 outp_data_len; /* 0..DP_MAX_OUTPUT_DATA_LEN */
/* OCTET outp_data [outp_data_len]; */
} T_DP_RD_OUTP_CON;
/*==========================================================================*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -