EasySync USB2-F-7101 Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
Document Reference No.: ES_000010
USB2-F-7x01 Programming Guide
Version 1.01
Clearance No.: ES# 27
©2009-2010 EasySync Ltd. 12
2.2.7 canplus_Status
Summary
Retrieve adaptor status for channel with handle h.
Definition
int canplus_Status( CANHANDLE h );
Parameters
h handle returned by canplus_Open for the desired USB2-F-7x01
Remarks
Returns < 0 error codes if failure. Limit use of “canplus_Status” as it may degrade transmission
and reception of valid frames.
Return Codes
>0 Status value with bit values as below
// Status bits
#define CANSTATUS_RECEIVE_FIFO_FULL 0x01
#define CANSTATUS_TRANSMIT_FIFO_FULL 0x02
#define CANSTATUS_ERROR_WARNING 0x04
#define CANSTATUS_DATA_OVERRUN 0x08
#define CANSTATUS_ERROR_PASSIVE 0x20
#define CANSTATUS_ARBITRATION_LOST 0x40
#define CANSTATUS_BUS_ERROR 0x80
<=0 Error as noted below:
ERROR_CANPLUS_FAIL
Unable to get the status
ERROR_CANPLUS_COMMAND_SUBSYSTEM
Status command returned a failure
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 29 30

Comentarios a estos manuales

Sin comentarios