更新EsptouchForIOS

This commit is contained in:
kai60
2020-06-10 20:27:25 +08:00
parent 1f69653c19
commit b8d6ad08ea
42 changed files with 1625 additions and 853 deletions
+44
View File
@@ -0,0 +1,44 @@
//
// ESPDataCode.h
// EspTouchDemo
//
// Created by fby on 4/9/15.
// Copyright (c) 2015 fby. All rights reserved.
//
#import <Foundation/Foundation.h>
#define DATA_CODE_LEN 6
/**
* one data format:(data code should have 2 to 65 data)
*
* control byte high 4 bits low 4 bits
* 1st 9bits: 0x0 crc(high) data(high)
* 2nd 9bits: 0x1 sequence header
* 3rd 9bits: 0x0 crc(low) data(low)
*
* sequence header: 0,1,2,...
*
* @author afunx
*
*/
@interface ESPDataCode : NSObject
{
@private
Byte _seqHeader;
@private
Byte _dataHigh;
@private
Byte _dataLow;
@private
Byte _crcHigh;
@private
Byte _crcLow;
}
- (NSData*) getBytes;
- (id) initWithU8: (UInt8) u8 andIndex: (int) index;
@end