MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 76

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 194
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 75
Programming PIC Microcontrollers in BASIC - mikroElektronika
Description The procedure sets the CAN message filter. CAN must be in Configuration mode. If not, all values will be
ignored.
Parameters:
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
Output:
Given value is bit adjusted to appropriate buffer filter registers
Example
CANSPISetFilter(CAN_FILTER_B1_F1, 3, CAN_CONFIG_XTD_MSG)
5.2.4.7 CANSPIWrite – Queues message for transmission
Prototype
sub function CANSPIWrite(dim id as longint, dim byref Data : as byte[8],
dim DataLen as byte, dim CAN_TX_MSG_FLAGS as byte) as byte
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (34 sur 112)05/11/2004 02:20:52
Vue de la page 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 193 194

Commentaires sur ces manuels

Pas de commentaire