MATLAB XPC TARGET 4 - DEVICE DRIVERS Spécifications Page 132

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 653
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 131
4 CAN I/O Support
4-42
Let us analyze the model.
The first input is the Function class of type uint8, which has an example value
of 112. This value has to become byte 0 (bits 0 to 7) of the data frame. Therefore
the first bit (element 1 of double array [0:7]) has to get bit 0 of the data frame,
the second bit 1 and so on. It is easiest to define this mapping by the MATLAB
colon operator:.
The second input is the Function subclass of type uint8, which has an example
value of 23. This value has to become byte 1 (bits 8:15) of the data frame but in
reversed bit order. Therefore the first bit (element 1 of double array [15:-1:8])
Vue de la page 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 652 653

Commentaires sur ces manuels

Pas de commentaire