EepromController.h
1.77キロバイト
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// EepromController.h
// jacket_test_ios
//
// Created by ドラッサル 亜嵐 on 2017/07/24.
// Copyright © 2017年 ドラッサル 亜嵐. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BleProtocol.h"
#import "BLE.h"
#import "EepromTemplateController.h"
typedef enum {
EEPROM__EEPROM_WP_OFF,
EEPROM__EEPROM_WP_OFF_DONE,
EEPROM__EEPROM_WP_ON,
EEPROM__EEPROM_WP_ON_DONE,
EEPROM__EEPROM_READ_ID,
EEPROM__EEPROM_READ_ID_DONE,
EEPROM__EEPROM_READ_MODEL,
EEPROM__EEPROM_READ_MODEL_DONE,
EEPROM__EEPROM_READ_TYPE,
EEPROM__EEPROM_READ_TYPE_DONE,
EEPROM__EEPROM_READ_OS,
EEPROM__EEPROM_READ_OS_DONE,
EEPROM__EEPROM_READ_PIN,
EEPROM__EEPROM_READ_PIN_DONE,
EEPROM__EEPROM_WRITE_ID,
EEPROM__EEPROM_WRITE_ID_DONE,
EEPROM__EEPROM_WRITE_MODEL,
EEPROM__EEPROM_WRITE_MODEL_DONE,
EEPROM__EEPROM_WRITE_TYPE,
EEPROM__EEPROM_WRITE_TYPE_DONE,
EEPROM__EEPROM_WRITE_OS,
EEPROM__EEPROM_WRITE_OS_DONE,
EEPROM__EEPROM_WRITE_PIN,
EEPROM__EEPROM_WRITE_PIN_DONE,
EEPROM__DONE
} EepromCommandState;
@interface EepromController : UIViewController<EepromTemplateControllerDelegate, BLEProtocolDelegate> {
IBOutlet UITextField *txtId;
IBOutlet UITextField *txtModel;
IBOutlet UITextField *txtType;
IBOutlet UITextField *txtOs;
IBOutlet UITextField *txtPin;
NSString *strId;
NSString *strModel;
NSString *strType;
NSString *strOs;
NSString *strPin;
EepromCommandState bleCommandState;
IBOutlet UIScrollView *scrollView;
UITextField *activeField;
}
- (IBAction)cancelButtonClicked:(id)sender;
- (IBAction)saveButtonClicked:(id)sender;
@property (strong, nonatomic) BleProtocol *protocol;
@property (nonatomic,assign) id <BLEProtocolDelegate> lastProtocolDelegate;
@end