public ushort DLC { get; set; }Public Property DLC As UShort
Get
Setpublic:
property unsigned short DLC {
unsigned short get ();
void set (unsigned short value);
}The number of data bytes (Length) in the Data field is indicated by the Data Length Code. Its coding is different in CAN CC, CAN FD, and CAN XL. There is the following relationship between Data Length Code and the actual number of data bytes:
| DLC | Data Length - CAN CC | Data Length - CAN FD | Data Length - CAN XL |
|---|---|---|---|
| ≤ 8 | DLC | DLC | DLC +1 |
| 9 | 8 | 12 | DLC +1 |
| 10 | 8 | 16 | DLC +1 |
| 11 | 8 | 20 | DLC +1 |
| 12 | 8 | 24 | DLC +1 |
| 13 | 8 | 32 | DLC +1 |
| 14 | 8 | 48 | DLC +1 |
| 15 | 8 | 64 | DLC +1 |
| 16..2047 | 8 | 64 | DLC +1 |
| ≥ 2047 | 8 | 64 | 2048 |