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

9.10.1 CANSetOperationMode

9.10.1 CANSetOperationMode

The CANSetOperationMode function sets the CAN operation mode. The function prototype is:

void CANSetOperationMode(char mode, char wait_flag)

The parameter  wait_flag is either 0 or 0xFF. If it is set to 0xFF, the function blocks and will not return until the requested mode is set. If it is set to 0, the function returns as a nonblocking call.

The mode can be one of the following:

• CAN_MODE_NORMAL Normal mode of operation

• CAN_MODE_SLEEP Sleep mode of operation

• CAN_MODE_LOOP Loop-back mode of operation

• CAN_MODE_LISTEN Listen-only mode of operation

• CAN_MODE_CONFIG Configuration mode of operation

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


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