https://github.com/kleydon/mac-serialport-cpp
A serial port class, for interfacing between Macs and microcontrollers. Works over USB serial.
https://github.com/kleydon/mac-serialport-cpp
arduino cocoa diy mac maker mcu microcontroller microprocessor osx port prototyping serial serial-com serial-port serialport usb-serial usb-serial-controller
Last synced: about 1 month ago
JSON representation
A serial port class, for interfacing between Macs and microcontrollers. Works over USB serial.
- Host: GitHub
- URL: https://github.com/kleydon/mac-serialport-cpp
- Owner: kleydon
- License: mit
- Created: 2019-05-09T00:40:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T22:49:56.000Z (about 6 years ago)
- Last Synced: 2025-04-09T16:09:18.373Z (about 1 month ago)
- Topics: arduino, cocoa, diy, mac, maker, mcu, microcontroller, microprocessor, osx, port, prototyping, serial, serial-com, serial-port, serialport, usb-serial, usb-serial-controller
- Language: C++
- Size: 50.8 KB
- Stars: 23
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mac-SerialPort-Cpp
A serial port class for the Mac, written in C++, for interfacing microcontrollers, etc. Works over USB serial.
## Usage:
* Open serial port for a device with: `openAndConfigureSerialPort(const char* portPath, int baudRate)`
* Read data using: `readSerialData(char* bytes, size_t length)`
* Write data using: `writeSerialData(const char* bytes, size_t length)`
* Remember to flush potentially buffered data when necessary with: `flushSerialData()`
* Close serial port when done, using: `closeSerialPort(void);`