NMEA2000 icon indicating copy to clipboard operation
NMEA2000 copied to clipboard

Water depth/temperature sensor with STM32F302

Open Jeanluc22 opened this issue 2 years ago • 1 comments

Hi, I'm working on a sensor that uses STM32F302 mcu. The device must be able to be connected to a NMEA2000 network and provide information about the depth and temperature of the water. I'd like to use Timo’s NMEA2000 library, but the whole project is written in c using Keil uVision IDE.

Since the device has to transmit only some messages is it possible to extract from the library only the necessary parts and convert them into c?

Do you have any suggestions on how I might proceed?

Thank you!

Jeanluc22 avatar Jun 10 '22 14:06 Jeanluc22

There is no shortcut. You have to convert every class to pure c structure and write all class functions to pure c and add c "class" structure as function parameter. Handling inheritance is bit more complex, since you need to write your own virtual function pointer handler.

ttlappalainen avatar Jun 12 '22 05:06 ttlappalainen