//
//  BG728.h
//  myTracks21
//
//  Created by Dirk Stichling on 22.05.12.
//  Copyright (c) 2012 Dirk Stichling. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DsTrackFramework/GpsDriver.h>

@class Track;
@class AMSerialPort;

#define kBG728ProtocolTrackPointCount 1
#define kBG728ProtocolTrackPoint      2
#define kBG728ProtocolFinished        3
#define kBG728ProtocolFailure         4
#define kBG728ProtocolDeleteTracks    5
#define kBG728ProtocolTimezone        6

@interface BG728 : NSObject <GpsDriver> {
    @private
    AMSerialPort* port;
    Track* currentTrack;
    NSInteger protocolCommand;
    NSInteger numberOfTrackPoints;
    NSInteger trackPointCounter;
    NSInteger timezone;
    NSInteger wrongResponseCounter;
}

@end
