You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
476 B
C
20 lines
476 B
C
1 year ago
|
//
|
||
|
// Created by hyz on 2024/6/5.
|
||
|
//
|
||
|
|
||
|
#ifndef SERIAL_COMM_BASE89656_H
|
||
|
#define SERIAL_COMM_BASE89656_H
|
||
|
|
||
|
#include <string>
|
||
|
#include "GPIOControl.h"
|
||
|
|
||
|
#define MAX_STRING_LEN 32
|
||
|
#define IOT_PARAM_WRITE 0xAE
|
||
|
#define IOT_PARAM_READ 0xAF
|
||
|
|
||
|
#define LOGE(fmt, args...) __android_log_print(ANDROID_LOG_ERROR, "serial_port_comm", fmt, ##args)
|
||
|
|
||
|
int set_port_attr (int fd, int baudrate, int databit, const char *stopbit, char parity, int vtime, int vmin );
|
||
|
|
||
|
#endif //SERIAL_COMM_BASE89656_H
|