Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
USB_serial.h File Reference

Interface to USB -> RS232 (interface) More...

#include "stdint.h"

Go to the source code of this file.

Functions

bool open_USB_serial (char *portname=(char *)"/dev/ttyUSB0")
 
bool write_usb_serial (uint8_t *data, unsigned size)
 

Detailed Description

Interface to USB -> RS232 (interface)

Author
Dr. Klaus Schaefer

<Larus Flight Sensor Firmware>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file USB_serial.h.

Function Documentation

◆ open_USB_serial()

bool open_USB_serial ( char portname = (char *)"/dev/ttyUSB0")

Definition at line 91 of file USB_serial.cpp.

References fd, set_blocking(), and set_interface_attribs().

◆ write_usb_serial()

bool write_usb_serial ( uint8_t data,
unsigned  size 
)

Definition at line 103 of file USB_serial.cpp.

References fd.

Referenced by CAN_send().