MikroElektronika PIC Microcontrollers PIC16 Manual de usuario Pagina 135

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 134
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
130
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
sub function CANSPIwrite(dim id as longint, dim byref Data as byte[8], dim
DataLen as byte, dim CAN_TX_MSG_FLAGS as byte) as byte
CAN must be in Normal mode.
id - CAN message identifier. Only 11 or 29 bits may be used depending on mes-
sage type (standard or extended).
Data - array of bytes up to 8 bytes in length
DataLen - Data length from 1 thru 8.
CAN_TX_MSG_FLAGS - Value formed from constants (see section below)
If at least one empty transmit buffer is found, given message is queued for the
transmission. If none found, FALSE value is returned.
CAN must be in mode in which receiving is possible.
id - CAN message identifier
Data - array of bytes up to 8 bytes in length
DataLen - Data length from 1 thru 8.
CAN_TX_MSG_FLAGS - Value formed from constants (see below)
If at least one full receive buffer is found, it is extracted and returned.
If none found, FALSE value is returned.
CANSPIRead
Prototype:
Parameters:
Effects:
Precondition:
CANSPIWrite
Prototype:
Parameters:
Effects:
Precondition:
sub function CANSPIread(dim byref id as longint, dim byref Data as byte[8],
dim byref DataLen as byte, dim byref CAN_RX_MSG_FLAGS as byte) as byte
Vista de pagina 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 171 172

Comentarios a estos manuales

Sin comentarios