MATLAB XPC TARGET 4 - DEVICE DRIVERS Especificaciones Pagina 132

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 653
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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])
Vista de pagina 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 652 653

Comentarios a estos manuales

Sin comentarios