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.
TermApp/TestComm/app/src/main/cpp/serialComm.h

20 lines
483 B
C++

//
// 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, unsigned int baudrate, int databit, const int stopbit, char parity, int vtime, int vmin );
#endif //SERIAL_COMM_BASE89656_H