MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 63

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 193 194

Komentáře k této Příručce

Žádné komentáře