MAV'RIC
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
Sparky_v2 Class Reference

Boardsupport for the Sparky board. More...

#include <sparky_v2.hpp>

Collaboration diagram for Sparky_v2:
Collaboration graph
[legend]

List of all members.

Classes

struct  conf_t
 Configuration structure. More...

Public Member Functions

 Sparky_v2 (conf_t config=default_config())
 Constructor.
bool init (void)
 Hardware initialisation.

Static Public Member Functions

static conf_t default_config ()
 Default configuration for the board.

Public Attributes

Gpio_stm32 led_err_gpio_
Gpio_stm32 led_stat_gpio_
Gpio_stm32 led_rf_gpio_
Led_gpio led_err_
Led_gpio led_stat_
Led_gpio led_rf_
Serial_stm32 serial_1_
Serial_usb_stm32 serial_
Pwm_stm32 pwm_ [PWM_COUNT]
Servo servo_ [PWM_COUNT]
Spi_stm32 spi_1_
Spi_stm32 spi_3_
Gpio_stm32 nss_1_gpio_
Gpio_stm32 nss_2_gpio_
Gpio_stm32 nss_3_gpio_
State_display_sparky_v2 state_display_sparky_v2_
Mpu_9250 mpu_9250_
Imu imu_

Static Public Attributes

static const uint8_t PWM_COUNT = 10

Detailed Description

Boardsupport for the Sparky board.


Constructor & Destructor Documentation

Constructor.

Parameters:
configBoard configuration

Member Function Documentation

Default configuration for the board.

Returns:
Config structure

< +1 or -1

< Should be 0, 1, or 2

< +1 or -1

< Should be 0, 1, or 2

< Should be >0

< +1 or -1

< Should be 0, 1, or 2

bool Sparky_v2::init ( void  )

Hardware initialisation.

Returns:
Success

Here is the call graph for this function:


Member Data Documentation

Public Members


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines