MP Type | SPI |
OS Type | Multi-Thread Mbed , etc |
Calculation accuracy | floating-point calculation |
Characteristic Conversion | linear conversion |
Filter | Non |
Diagnostics | SP Max/Min CP Open Thermocouple Detection diag MP non-diag |
Software Specifications
In this section, we will use the OSS-EC SPI component ( Maxim MAX6675 ) as an example.
Intended use scenarios
After power is turned on, the temperature is obtained from the temperature sensor via SPI communication. If the temperature exceeds the upper or lower limit, it judges NG and stops acquiring temperature and Sleep.
summary
Block diagram of SPI components and OSS-EC software ( fig.1 )
Application state transition of SPI components ( fig.2)
API ( fig.3 )
Command sequence ( fig.4 )
Blue label characters are data related to components.
Red label characters are data related to application.
Green label characters are data related to the circuit.




File ( Mbed C++)
main.cpp | application source code file |
pcmp.cpp | SPI Component source code file |
pcmp.h | SPI Component header file |
oss-ec.h | OSS-EC header file |
ic.h | IC Number header file |
layer_if.h | OSS-EC Layer interface header file |
prc.cpp | Sequence process data file |
prc.h | Sequence process header file |
user_setting.cpp | user setting data file |
user_setting.h | user setting header file |
max6675.cpp | MAX6675 data file |
max6675.h | MAX6675 header file |