Книга: Advanced PIC Microcontroller Projects in C

9.10.5 CANSetMask

9.10.5 CANSetMask

The CANSetMask function sets the mask for filtering messages. The function prototype is:

void CANSetMask(char CAN_MASK, long value,
 char CAN_CONFIG_FLAGS)

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).

Оглавление книги


Генерация: 0.030. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз