BlueNinja BSP  0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
TZ01_console.h
[詳解]
1 
7 /*
8 Copyright 2015 Cerevo Inc.
9 
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13 
14  http://www.apache.org/licenses/LICENSE-2.0
15 
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21 */
22 
23 #ifndef _TZ01_CONSOLE_H_
24 #define _TZ01_CONSOLE_H_
25 
26 #include <stdbool.h>
27 #include <stdint.h>
28 
35 bool TZ01_console_init(void);
36 
44 bool TZ01_console_getc(uint8_t *c);
45 
53 bool TZ01_console_putc(uint8_t c);
54 
61 int TZ01_console_gets(char *buf, int max_len);
62 
69 int TZ01_console_puts(char *buf);
70 
77 int TZ01_console_read(uint8_t *buf, int len);
78 
85 int TZ01_console_write(uint8_t *buf, int len);
86 
87 #endif //_TZ01_CONSOLE_H_
bool TZ01_console_getc(uint8_t *c)
Get character from serial console.
bool TZ01_console_init(void)
Initialize serial console.
int TZ01_console_write(uint8_t *buf, int len)
Write byte data to serial console.
int TZ01_console_read(uint8_t *buf, int len)
Read byte data from serial console.
bool TZ01_console_putc(uint8_t c)
Put character to serial console.
int TZ01_console_puts(char *buf)
Put String to serial console.
int TZ01_console_gets(char *buf, int max_len)
Get string from serial console.