User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
126
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
sub procedure CANSPISetOperationMode(dim mode as byte, dim WAIT as byte)
mode - Operation mode code can take any of predefined constant values
(see the constants below)
WAIT - Should have value TRUE(255) or FALSE(0)
CAN is set to requested mode
Given mode byte is copied to CANSTAT
If WAIT is true, this is a blocking call. It won't return until requested mode is set.
If WAIT is false, this is a non-blocking call. It does not verify if CAN module is
switched to requested mode or not. Caller must use CANSPIGetOperationMode()
to verify correct operation mode before performing mode specific operation.
sub function CANSPIGetOperationMode as byte
None
Current operational mode of CAN module is returned
Prototype:
Parameters:
Effects:
Overview:
Note:
CANSPISetOperationMode
CANSPIGetOperationMode
Prototype:
Parameters:
Output: