MikroElektronika PIC Microcontrollers PIC16 Manuel d'utilisateur Page 134

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 133
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
129
page
sub procedure CANSPISetFilter(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 RegsToCANSPIID(dim byref ptr as byte, dim CAN_CONFIG_FLAGS as
byte) as longint
sub procedure CANSPIIDToRegs(dim byref ptr as byte, dim val as longint, dim
CAN_CONFIG_FLAGS as byte)
These two routines are used by other routines (internal purpose only).
CANSPISetFilter
Prototype:
Parameters:
Effects:
Precondition:
RegsTOCANSPIID and CANSPIIDToRegs
Prototypes:
Effects:
Vue de la page 133
1 2 ... 129 130 131 132 133 134 135 136 137 138 139 ... 171 172

Commentaires sur ces manuels

Pas de commentaire