MikroElektronika PIC Microcontrollers PIC16 Uživatelský manuál Strana 131

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 172
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 130
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:
Zobrazit stránku 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 171 172

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

Žádné komentáře