unknown type name 'class' in simulink code generation

4 次查看(过去 30 天)
Hi, I'm using the Matlab system function in Simulink for code generation on Arduino.
I have managed to compile simple code on Arduino but when I started to use Arduino libraries Simulink was not able to compile classes in those libraries.
It returns the following error for SPI.h libray:
error: unknown type name 'class'
class SPISettings { ^
Does anyone know a solution?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by