![]() ![]() On the other hand, if we want more precision and negative representation, we could use bits with 0. For example, if we choose 8-bits, with 0. A floating point variable can be sent by deciding the range, and the precision that you require. Let's add a signed signal to the previous message. ![]() A signed signal can be sent by simply applying a negative offset to a signal. Spaces and the syntax is really strictso if you get a single space incorrect, the auto-generation script will likely fail. Let's demonstrate by showing a message that contains a single 8-bit signal. Essentially, each "message" defined in a DBC becomes a C structure with the signals being the members of the C structure. ![]() The second part of this article discusses how the auto-generated code can help you read and write the CAN message data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |