client-c  0.7.4
esp8266_serial.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * @file esp8266_serial.h
19  *
20  * Created on: Mar 17, 2015
21  * Author: Andriy Panasenko <apanasenko@cybervisiontech.com>
22  */
23 
24 #ifndef ESP8266_SERIAL_H_
25 #define ESP8266_SERIAL_H_
26 
27 
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 struct esp8266_serial_t;
36 
38 
40 
42 
43 void esp8266_serial_write(esp8266_serial_t *serial, const char *message);
44 
45 void esp8266_serial_write_byte(esp8266_serial_t *serial, const uint8 byte);
46 
47 void esp8266_serial_write_buffer(esp8266_serial_t *serial, const void *buffer, const uint32 size);
48 
49 void esp8266_serial_write_command(esp8266_serial_t *serial, const char *command);
50 
51 #ifdef __cplusplus
52 } /* extern "C" */
53 #endif
54 #endif /* ESP8266_SERIAL_H_ */
void esp8266_serial_write_command(esp8266_serial_t *serial, const char *command)
uint8 esp8266_serial_read(esp8266_serial_t *serial)
void esp8266_serial_write_byte(esp8266_serial_t *serial, const uint8 byte)
bool esp8266_serial_available(esp8266_serial_t *serial)
void esp8266_serial_end(esp8266_serial_t *serial)
struct esp8266_serial_t esp8266_serial_t
void esp8266_serial_write_buffer(esp8266_serial_t *serial, const void *buffer, const uint32 size)
void esp8266_serial_write(esp8266_serial_t *serial, const char *message)