MikroElektronika PIC Microcontrollers PIC18 Uživatelský manuál Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 40
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
void CANSetMask(char CAN_MASK, long value, char
CAN_CONFIGFLAGS)
CAN_MASK can be one of the following:
CAN_MASK_B1 Receive buffer 1 mask value
CAN_MASK_B2 Receive buffer 2 mask value
value is the mask register value. CAN_CONFIG_FLAGS can be either
CAN_CONFIG_XTD (extended message), or CAN_CONFIG_STD (standard
message).
9.10.6 CANSetFilter
The CANSetFilter function sets filter values. The function prototype is:
void CANSetFilter (char CAN_FILTER, long value, char
CAN_CONFIG_FLAGS)
CAN_FILTER can be one of the following:
CAN_FILTER_B1_F1 Filter 1 for buffer 1
CAN_FILTER_B1_F2 Filter 2 for buffer 1
CAN_FILTER_B2_F1 Filter 1 for buffer 2
CAN_FILTER_B2_F2 Filter 2 for buffer 2
CAN_FILTER_B2_F3 Filter 3 for buffer 2
CAN_FILTER_B2_F4 Filter 4 for buffer 2
CAN_CONFIG_FLAGS can be either CAN_CONFIG_XTD (extended message) or
CAN_CONFIG_STD (standard message).
9.10.7 CANRead
The CANRead function is used to read messages from the CAN bus. If no message is
available, 0 is returned. The function prototype is:
char CANRead(long *id, char *data, char *datalen, char
*CAN_RX_MSG_FLAGS)
www.newnespress.com
502 Chapter 9
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 39 40

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

Žádné komentáře