MS5534a barometer (SPI)
No detailed description...
Example for airframe file
Add to your firmware section:
<module name="baro_MS5534A"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Event Functions
These event functions are called in each cycle of the module event loop.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- baro_MS5534A_send()
- Frequency in Hz: 20
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw baro_MS5534A.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="baro_MS5534A" dir="sensors" task="sensors">
<doc>
<description>MS5534a barometer (SPI)</description>
</doc>
<header>
<file name="baro_MS5534A.h"/>
</header>
<dep>
<depends>spi_master</depends>
<provides>baro</provides>
</dep>
<init fun="baro_MS5534A_init()"/>
<periodic fun="baro_MS5534A_send()" freq="20"/>
<event fun="baro_MS5534A_event()"/>
<makefile target="ap">
<file name="baro_MS5534A.c"/>
<define name="USE_BARO_MS5534A"/>
<define name="USE_SPI_SLAVE0"/>
<configure name="BARO_MS5534A_W1" value="0xAC20"/>
<configure name="BARO_MS5534A_W2" value="0x87D9"/>
<configure name="BARO_MS5534A_W3" value="0x8D9C"/>
<configure name="BARO_MS5534A_W4" value="0xB080"/>
</makefile>
</module>