MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
Programming PIC Microcontrollers in BASIC - mikroElektronika
Description The procedure sets the CAN message filter. CAN must be in Configuration mode. If not, all values will be
ignored.
Parameters:
CAN_FILTER - One of predefined constant values
val - Actual filter register value.
CAN_CONFIG_FLAGS - Type of message to filter, either CAN_CONFIG_XTD_MSG or
CAN_CONFIG_STD_MSG
Output:
Given value is bit adjusted to appropriate buffer filter registers
Example
CANSetFilter(CAN_FILTER_B1_F1, 3, CAN_CONFIG_XTD_MSG)
5.2.3.7 CANWrite – Queues message for transmission
Prototype
sub function CANWrite(dim id as longint, dim byref Data : as byte[8], dim
DataLen as byte, dim CAN_TX_MSG_FLAGS as byte) as byte
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (21 sur 112)05/11/2004 02:20:52
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 193 194

Comentarios a estos manuales

Sin comentarios