Commell MPX-2515 Manual do Utilizador Página 7

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 38
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 6
Commell MPX-2515 User’s Guide Rev 0100
Taiwan Commate Computer Inc.
7
4 COMMAND The command category code.
5 ERROR 0X00
6 DATA_0 or
COMMAND_0
Byte 0 of the data field or command_0 byte.
7 DATA_1 or
COMMAND_1
Byte 1 of the data filed or command_1 byte.
8 DATA_2 or
COMMAND_2
Byte 2 of the data field or command_2 byte.
9 DATA_3 or
COMMAND_3
Byte 3 of the data field or command_3 byte.
10 to N DATA The DATA field; up to 53 bytes.
N+1 CHECKSUM 2's complement checksum of all fields except
this checksum field.
Table 2 CCANP Request Packet Format
The following table defines the format of CCAP Response Packet.
OFFSET NAME DESCRIPTION
0 HEADER_MSB 0X66
1 HEADER_LSB 0XBB
2 VERSION 0X01
3 SIZEOF_DATA The number of bytes residing in the DATA field.
4 COMMAND The corresponding command category code.
5 ERROR The error code.
6 to N DATA The DATA field; up to 57 bytes.
N+1 CHECKSUM 2's complement checksum of all fields except
this checksum field.
Table 3 CCANP Response Packet Format
1.4 Defined Constants
This section defines constants used in MPX-2515 programming. Please be noted
that all these constants are defined in C programming language style.
/* COMMAND: Service code */
#define CCP_CAN_SYSTEM_SERVICE 0X20
#define CCP_CAN_RX_MASKS_FILTERS 0X22
#define CCP_CAN_TX 0X23
#define CCP_CAN_BIT_MODIFY 0X25
#define CCP_CAN_READ_FMB 0X26
/* DATA_0: sub-command code */
#define CAN_GET_INFO 0X01
#define CAN_GET_TICKCOUNT 0X02
Vista de página 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 37 38

Comentários a estes Manuais

Sem comentários