Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

C++ functions for encoding and decoding CAN frames ( uint8_t[8] )

License

NotificationsYou must be signed in to change notification settings

reinzor/libcan-encode-decode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

C++ functions for encoding and decoding CAN frames ( uint8_t[8] )

Usage

Copy the include/can_encode_decode.inl into your c++ project and use the inline functions.

uint8_t src_array[8];encode(src_array, 3.0, 56, 3, false, false, 1.000000, 0);decode(src_array, 56, 3, false, false, 1.000000, 0); // 3.0encode(src_array, 35, 2, 6, true, false, 1.0, 0);decode(src_array, 2, 6, true, false, 1.000000, 0) // 35.000000encode(src_array, 1.0, 0, 2, true, false, 1.0, 0);decode(src_array, 0, 2, true, false, 1.000000, 0); // 1.000000

Run tests

./run_tests.sh

About

C++ functions for encoding and decoding CAN frames ( uint8_t[8] )

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp