2014-12-15 02:52:06 +00:00
|
|
|
//
|
|
|
|
// ASSerial.h
|
|
|
|
// AVRsack
|
|
|
|
//
|
|
|
|
// Created by Matthias Neeracher on 12/15/14.
|
|
|
|
// Copyright © 2014 Aere Perennius. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
extern NSString * kASSerialPortsChanged;
|
|
|
|
|
|
|
|
@interface ASSerial : NSObject
|
|
|
|
|
2014-12-31 07:26:45 +00:00
|
|
|
+ (NSString *) fileNameForPort:(NSString *)port;
|
2014-12-15 02:52:06 +00:00
|
|
|
+ (NSArray *) ports;
|
|
|
|
+ (NSFileHandle *)openPort:(NSString *) port withSpeed:(int)speed;
|
2014-12-29 06:35:07 +00:00
|
|
|
+ (void)restorePort:(int)fileDescriptor;
|
2014-12-15 02:52:06 +00:00
|
|
|
|
|
|
|
@end
|