MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 75

  • 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 74
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CANSPISetMask(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
CANSPISetMask(CAN_MASK_B2, -1, CAN_CONFIG_XTD_MSG)
5.2.4.6 CANSPISetFilter – Sets the CAN message filter
Prototype
sub procedure CANSPISetFilter(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 (33 sur 112)05/11/2004 02:20:52
Vista de pagina 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 193 194

Comentarios a estos manuales

Sin comentarios