Part Number: EK-TM4C1294XL
Tool/software: Code Composer Studio
I would be glad about any hint
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: EK-TM4C1294XL
Tool/software: Code Composer Studio
Hi,
There is some code that you can reference in <TivaWare_Installation>/examples/boards/ek-tm4c1294xl-boostxl-senshub/compdcm_mpu9150/compdcm_mpu9150.c file on how to convert a floating value to a decimal value. Check out the code starting at line 656. I think what you want is to break a floating value, i.e. 3.1 into a decimal portion and the fractional portion. In this case, the decimal portion will be 3 and the fractional portion will be 1. You will then use then usnprintf() to form a string that includes the decimal value + '.' + fractional value. I will suggest you create a very simple project that play with this idea first and see if it works before you apply to your enet_io project.