Program Listing for File serial.h

Return to documentation for file (include/libcaer/devices/serial.h)

#ifndef LIBCAER_DEVICES_SERIAL_H_
#define LIBCAER_DEVICES_SERIAL_H_

#include "device.h"

#ifdef __cplusplus
extern "C" {
#endif

#define CAER_HOST_CONFIG_SERIAL -1

#define CAER_HOST_CONFIG_SERIAL_READ_SIZE 0

#define CAER_HOST_CONFIG_SERIAL_BAUD_RATE_2M  2000000
#define CAER_HOST_CONFIG_SERIAL_BAUD_RATE_4M  4000000
#define CAER_HOST_CONFIG_SERIAL_BAUD_RATE_8M  8000000
#define CAER_HOST_CONFIG_SERIAL_BAUD_RATE_12M 12000000

LIBRARY_PUBLIC_VISIBILITY caerDeviceHandle caerDeviceOpenSerial(
    uint16_t deviceID, uint16_t deviceType, const char *serialPortName, uint32_t serialBaudRate);

#ifdef __cplusplus
}
#endif

#endif /* LIBCAER_DEVICES_SERIAL_H_ */