32 #ifndef ROSFLIGHT_FIRMWARE_BOARD_H 33 #define ROSFLIGHT_FIRMWARE_BOARD_H 60 virtual void clock_delay(uint32_t milliseconds) = 0;
63 virtual void serial_init(uint32_t baud_rate, uint32_t dev) = 0;
64 virtual void serial_write(
const uint8_t *src,
size_t len) = 0;
79 virtual void mag_read(
float mag[3]) = 0;
111 virtual float rc_read(uint8_t channel) = 0;
114 virtual void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) = 0;
116 virtual void pwm_write(uint8_t channel,
float value) = 0;
120 virtual bool memory_read(
void *dest,
size_t len) = 0;
121 virtual bool memory_write(
const void *src,
size_t len) = 0;
141 #endif // ROSLFIGHT_FIRMWARE_BOARD_H virtual void led0_off()=0
virtual void init_board()=0
virtual void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm)=0
virtual void battery_current_set_multiplier(double multiplier)=0
virtual bool gnss_has_new_data()=0
virtual float rc_read(uint8_t channel)=0
static volatile int16_t gyro[3]
virtual void sensors_init()=0
virtual bool battery_voltage_present() const =0
virtual void imu_not_responding_error()=0
virtual void memory_init()=0
virtual bool diff_pressure_present()=0
virtual void serial_write(const uint8_t *src, size_t len)=0
virtual bool memory_write(const void *src, size_t len)=0
virtual void backup_memory_write(const void *src, size_t len)=0
virtual void diff_pressure_update()=0
virtual bool new_imu_data()=0
virtual uint16_t serial_bytes_available()=0
virtual void led0_toggle()=0
virtual void sonar_update()=0
virtual void pwm_disable()=0
virtual void backup_memory_init()=0
virtual void diff_pressure_read(float *diff_pressure, float *temperature)=0
virtual void mag_update()=0
virtual void baro_read(float *pressure, float *temperature)=0
virtual void gnss_update()=0
virtual bool sonar_present()=0
virtual void battery_voltage_set_multiplier(double multiplier)=0
virtual void mag_read(float mag[3])=0
virtual GNSSData gnss_read()=0
static volatile int16_t accel[3]
virtual void serial_flush()=0
virtual void pwm_write(uint8_t channel, float value)=0
virtual void backup_memory_clear(size_t len)=0
virtual void board_reset(bool bootloader)=0
virtual uint64_t clock_micros()=0
virtual uint16_t num_sensor_errors()=0
virtual void baro_update()=0
virtual void clock_delay(uint32_t milliseconds)=0
virtual bool gnss_present()=0
virtual bool memory_read(void *dest, size_t len)=0
virtual bool battery_current_present() const =0
virtual uint32_t clock_millis()=0
virtual void led1_toggle()=0
virtual float sonar_read()=0
virtual bool imu_read(float accel[3], float *temperature, float gyro[3], uint64_t *time)=0
virtual float battery_current_read() const =0
virtual GNSSFull gnss_full_read()=0
virtual bool baro_present()=0
virtual bool mag_present()=0
virtual void serial_init(uint32_t baud_rate, uint32_t dev)=0
virtual void led1_off()=0
virtual bool backup_memory_read(void *dest, size_t len)=0
virtual void rc_init(rc_type_t rc_type)=0
virtual float battery_voltage_read() const =0
virtual uint8_t serial_read()=0