Skip to content

Add floating point ability since snappy by default can't handle it right now.

License

Notifications You must be signed in to change notification settings

synapse-wireless/floating-point-C-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNAPpy Example - Floating Point Numbers in C

IAR can handle floating point in C, while SNAPpy cannot. There may be times where you may want to pass a floating point number back up to a SNAPpy function and then pass it to another C function later. This example shows how this can be done using SNAPpy string buffers as a data buffer to hold the float as binary data (not "3.14159", but using memcpy() to write the float to the uint8_t *, and just treat it as a buffer to carry the float around.

License

Copyright © 2016 Synapse Wireless, licensed under the Apache License v2.0.

About

Add floating point ability since snappy by default can't handle it right now.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published