MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 62

  • 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 61
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CANSetMask(CAN_MASK as byte, val as longint, dim
CAN_CONFIG_FLAGS as byte)
Description The procedure sets the CAN message mask. CAN must be in Configuration mode. If not, all values will be
ignored.
Parameters:
CAN_MASK - One of predefined constant value
val - Actual mask 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 mask registers.
Example
CANSetMask(CAN_MASK_B2, -1, CAN_CONFIG_XTD_MSG)
5.2.3.6 CANSetFilter – Sets the CAN message filter
Prototype
sub procedure CANSetFilter(dim CAN_FILTER as byte, dim val as longint, dim
CAN_CONFIG_FLAGS as byte)
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (20 sur 112)05/11/2004 02:20:52
Vista de pagina 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 193 194

Comentarios a estos manuales

Sin comentarios