Public Types | Public Member Functions | List of all members
rosflight_firmware::Board Class Referenceabstract

#include <board.h>

Inheritance diagram for rosflight_firmware::Board:
Inheritance graph
[legend]

Public Types

enum  rc_type_t { RC_TYPE_PPM = 0, RC_TYPE_SBUS = 1 }
 

Public Member Functions

virtual bool baro_present ()=0
 
virtual void baro_read (float *pressure, float *temperature)=0
 
virtual void baro_update ()=0
 
virtual void board_reset (bool bootloader)=0
 
virtual void clock_delay (uint32_t milliseconds)=0
 
virtual uint64_t clock_micros ()=0
 
virtual uint32_t clock_millis ()=0
 
virtual bool diff_pressure_present ()=0
 
virtual void diff_pressure_read (float *diff_pressure, float *temperature)=0
 
virtual void diff_pressure_update ()=0
 
virtual BackupData get_backup_data ()=0
 
virtual bool gnss_has_new_data ()=0
 
virtual bool gnss_present ()=0
 
virtual GNSSRaw gnss_raw_read ()=0
 
virtual GNSSData gnss_read ()=0
 
virtual void gnss_update ()=0
 
virtual bool has_backup_data ()=0
 
virtual void imu_not_responding_error ()=0
 
virtual bool imu_read (float accel[3], float *temperature, float gyro[3], uint64_t *time)=0
 
virtual void init_board ()=0
 
virtual void led0_off ()=0
 
virtual void led0_on ()=0
 
virtual void led0_toggle ()=0
 
virtual void led1_off ()=0
 
virtual void led1_on ()=0
 
virtual void led1_toggle ()=0
 
virtual bool mag_present ()=0
 
virtual void mag_read (float mag[3])=0
 
virtual void mag_update ()=0
 
virtual void memory_init ()=0
 
virtual bool memory_read (void *dest, size_t len)=0
 
virtual bool memory_write (const void *src, size_t len)=0
 
virtual bool new_imu_data ()=0
 
virtual uint16_t num_sensor_errors ()=0
 
virtual void pwm_disable ()=0
 
virtual void pwm_init (uint32_t refresh_rate, uint16_t idle_pwm)=0
 
virtual void pwm_write (uint8_t channel, float value)=0
 
virtual void rc_init (rc_type_t rc_type)=0
 
virtual bool rc_lost ()=0
 
virtual float rc_read (uint8_t channel)=0
 
virtual void sensors_init ()=0
 
virtual uint16_t serial_bytes_available ()=0
 
virtual void serial_flush ()=0
 
virtual void serial_init (uint32_t baud_rate, uint32_t dev)=0
 
virtual uint8_t serial_read ()=0
 
virtual void serial_write (const uint8_t *src, size_t len)=0
 
virtual bool sonar_present ()=0
 
virtual float sonar_read ()=0
 
virtual void sonar_update ()=0
 

Detailed Description

Definition at line 69 of file board.h.

Member Enumeration Documentation

Enumerator
RC_TYPE_PPM 
RC_TYPE_SBUS 

Definition at line 73 of file board.h.

Member Function Documentation

virtual bool rosflight_firmware::Board::baro_present ( )
pure virtual
virtual void rosflight_firmware::Board::baro_read ( float *  pressure,
float *  temperature 
)
pure virtual
virtual void rosflight_firmware::Board::baro_update ( )
pure virtual
virtual void rosflight_firmware::Board::board_reset ( bool  bootloader)
pure virtual
virtual void rosflight_firmware::Board::clock_delay ( uint32_t  milliseconds)
pure virtual
virtual uint64_t rosflight_firmware::Board::clock_micros ( )
pure virtual
virtual uint32_t rosflight_firmware::Board::clock_millis ( )
pure virtual
virtual bool rosflight_firmware::Board::diff_pressure_present ( )
pure virtual
virtual void rosflight_firmware::Board::diff_pressure_read ( float *  diff_pressure,
float *  temperature 
)
pure virtual
virtual void rosflight_firmware::Board::diff_pressure_update ( )
pure virtual
virtual BackupData rosflight_firmware::Board::get_backup_data ( )
pure virtual
virtual bool rosflight_firmware::Board::gnss_has_new_data ( )
pure virtual
virtual bool rosflight_firmware::Board::gnss_present ( )
pure virtual
virtual GNSSRaw rosflight_firmware::Board::gnss_raw_read ( )
pure virtual
virtual GNSSData rosflight_firmware::Board::gnss_read ( )
pure virtual
virtual void rosflight_firmware::Board::gnss_update ( )
pure virtual
virtual bool rosflight_firmware::Board::has_backup_data ( )
pure virtual
virtual void rosflight_firmware::Board::imu_not_responding_error ( )
pure virtual
virtual bool rosflight_firmware::Board::imu_read ( float  accel[3],
float *  temperature,
float  gyro[3],
uint64_t *  time 
)
pure virtual
virtual void rosflight_firmware::Board::init_board ( )
pure virtual
virtual void rosflight_firmware::Board::led0_off ( )
pure virtual
virtual void rosflight_firmware::Board::led0_on ( )
pure virtual
virtual void rosflight_firmware::Board::led0_toggle ( )
pure virtual
virtual void rosflight_firmware::Board::led1_off ( )
pure virtual
virtual void rosflight_firmware::Board::led1_on ( )
pure virtual
virtual void rosflight_firmware::Board::led1_toggle ( )
pure virtual
virtual bool rosflight_firmware::Board::mag_present ( )
pure virtual
virtual void rosflight_firmware::Board::mag_read ( float  mag[3])
pure virtual
virtual void rosflight_firmware::Board::mag_update ( )
pure virtual
virtual void rosflight_firmware::Board::memory_init ( )
pure virtual
virtual bool rosflight_firmware::Board::memory_read ( void *  dest,
size_t  len 
)
pure virtual
virtual bool rosflight_firmware::Board::memory_write ( const void *  src,
size_t  len 
)
pure virtual
virtual bool rosflight_firmware::Board::new_imu_data ( )
pure virtual
virtual uint16_t rosflight_firmware::Board::num_sensor_errors ( )
pure virtual
virtual void rosflight_firmware::Board::pwm_disable ( )
pure virtual
virtual void rosflight_firmware::Board::pwm_init ( uint32_t  refresh_rate,
uint16_t  idle_pwm 
)
pure virtual
virtual void rosflight_firmware::Board::pwm_write ( uint8_t  channel,
float  value 
)
pure virtual
virtual void rosflight_firmware::Board::rc_init ( rc_type_t  rc_type)
pure virtual
virtual bool rosflight_firmware::Board::rc_lost ( )
pure virtual
virtual float rosflight_firmware::Board::rc_read ( uint8_t  channel)
pure virtual
virtual void rosflight_firmware::Board::sensors_init ( )
pure virtual
virtual uint16_t rosflight_firmware::Board::serial_bytes_available ( )
pure virtual
virtual void rosflight_firmware::Board::serial_flush ( )
pure virtual
virtual void rosflight_firmware::Board::serial_init ( uint32_t  baud_rate,
uint32_t  dev 
)
pure virtual
virtual uint8_t rosflight_firmware::Board::serial_read ( )
pure virtual
virtual void rosflight_firmware::Board::serial_write ( const uint8_t *  src,
size_t  len 
)
pure virtual
virtual bool rosflight_firmware::Board::sonar_present ( )
pure virtual
virtual float rosflight_firmware::Board::sonar_read ( )
pure virtual
virtual void rosflight_firmware::Board::sonar_update ( )
pure virtual

The documentation for this class was generated from the following file:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31