Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
mcp355x module

MCP355X ADC driver (SPI)

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="mcp355x"/>

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.

  • mcp355x_read()
    • Frequency in Hz: 10
    • 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 mcp355x.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mcp355x" dir="adcs">
<doc>
<description>MCP355X ADC driver (SPI)</description>
</doc>
<dep>
<depends>spi_master</depends>
</dep>
<header>
<file name="mcp355x.h"/>
</header>
<init fun="mcp355x_init()"/>
<periodic fun="mcp355x_read()" freq="10"/>
<event fun="mcp355x_event()"/>
<makefile target="ap">
<file name="mcp355x.c" dir="peripherals"/>
<define name="USE_SPI_SLAVE0"/>
</makefile>
</module>