MATLAB XPC TARGET 4 - DEVICE DRIVERS Especificações Página 131

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 653
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 130
Constructing and Extracting CAN Data Frames
4-41
We assume that a node on the CAN network needs to receive a CAN message
with identifier 156 having the following data frame content. The data frame
has to be 6 bytes long.
The bit pattern cell array, which bit-packs the data frame according to the
above specification, can look as follows.
{ [0:7] , [15:-1:8] , [16:23] , [25] , [-1,-1,26:31] , [32:47] }
And the Simulink model simulating the needed behavior would be as show
below.
Byte 0 Function class of type uint8
Byte 1 Function subclass of type uint8 with reversed
bit order
Byte 2 Reserved, all bits have to be 1
Byte 3 Bit 0 has to be 0, Bit 1 has to be a
boolean (flag), bits 2 to 7 have to be
bit 2 to 7 of an incoming int8 value
(control)
Byte 4 and 5 Value of type int16
Vista de página 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 652 653

Comentários a estes Manuais

Sem comentários