APM:Libraries
SPIUARTDriver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AP_HAL_Linux.h"
4 
5 #include "UARTDriver.h"
6 
7 namespace Linux {
8 
9 class SPIUARTDriver : public UARTDriver {
10 public:
11  SPIUARTDriver();
12  void begin(uint32_t b, uint16_t rxS, uint16_t txS);
13  void _timer_tick(void);
14 
15 protected:
16  int _write_fd(const uint8_t *buf, uint16_t n);
17  int _read_fd(uint8_t *buf, uint16_t n);
18 
20 
21  uint8_t *_buffer;
22 
24 
25  bool _external;
26 };
27 
28 }
void begin(uint32_t b, uint16_t rxS, uint16_t txS)
AP_HAL::OwnPtr< AP_HAL::SPIDevice > _dev
Definition: SPIUARTDriver.h:19
uint32_t _last_update_timestamp
Definition: SPIUARTDriver.h:23
int _read_fd(uint8_t *buf, uint16_t n)
int _write_fd(const uint8_t *buf, uint16_t n)