MikroElektronika PIC Microcontrollers PIC16 Bedienungsanleitung Seite 122

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 172
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 121
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
sub procedure CANSetFilter(dim CAN_FILTER as byte, dim val as longint,
dim CAN_CONFIG_FLAGS as byte)
CAN must be in Configuration mode. If not, all values will be ignored.
CAN_FILTER - One of predefined constant values
val - Actual filter register value.
CAN_CONFIG_FLAGS - Type of message to filter, either
CAN_CONFIG_XTD_MSG or CAN_CONFIG_STD_MSG
Given value is bit adjusted to appropriate buffer filter registers.
sub function RegsToCANID(dim byref ptr as byte, dim CAN_CONFIG_FLAGS as
byte) as longint
sub procedure CANIDToRegs(dim byref ptr as byte, dim val as longint,
CAN_CONFIG_FLAGS as byte)
These two routines are used by other routines (internal purpose only)
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
117
page
CANSetFilter
Prototype:
Parameters:
Effects:
Precondition:
RegsTOCANID and CANIDToRegs
Prototypes:
Effects:
Seitenansicht 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 171 172

Kommentare zu diesen Handbüchern

Keine Kommentare