Compare commits
3 Commits
b7b5ccd428
...
26fe06fcc7
Author | SHA1 | Date |
---|---|---|
Penguin | 26fe06fcc7 | 2 years ago |
Penguin | f7fc00d5c0 | 2 years ago |
Penguin | 728640188a | 2 years ago |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
env.sh
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
alias pipush="rsync -ar \
|
||||
--include='src**' \
|
||||
--include='inc**' \
|
||||
--exclude='*' \
|
||||
~/Projects/Penguinator/pi_serial_bus_manager/ penguin@192.168.1.121:~/pi_serial_bus_manager"
|
||||
alias pipull="rsync -ar penguin@192.168.1.121:~/pi_serial_bus_manager/* ~/Projects/Penguinator/pi_serial_bus_manager"
|
||||
|
@ -1,18 +1,22 @@
|
||||
#ifndef __P_SERIAL_BUS_H__
|
||||
#define __P_SERIAL_BUS_H__
|
||||
|
||||
#include "p_serial_packet.h"
|
||||
#include <linux/serial.h>
|
||||
#include <termio.h>
|
||||
class ps_bus
|
||||
{
|
||||
public:
|
||||
ps_bus(const char* dev);
|
||||
~ps_bus();
|
||||
|
||||
void ps_bus_start();
|
||||
bool send_pkt(const ps_packet* const pkt);
|
||||
bool recv_pkt(ps_packet* const pkt);
|
||||
|
||||
private:
|
||||
struct serial_rs485 rs485conf;
|
||||
int dev_fd;
|
||||
struct termios toptions;
|
||||
};
|
||||
|
||||
void p_sbus_start(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue