Program Listing for File edvs.h

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

#ifndef LIBCAER_DEVICES_EDVS_H_
#define LIBCAER_DEVICES_EDVS_H_

#include "../events/polarity.h"
#include "../events/special.h"

#include "serial.h"

#ifdef __cplusplus
extern "C" {
#endif

#define CAER_DEVICE_EDVS 5

#define EDVS_CONFIG_DVS 0
#define EDVS_CONFIG_BIAS 1

#define EDVS_CONFIG_DVS_RUN 0
#define EDVS_CONFIG_DVS_TIMESTAMP_RESET 1

#define EDVS_CONFIG_BIAS_CAS 0
#define EDVS_CONFIG_BIAS_INJGND 1
#define EDVS_CONFIG_BIAS_REQPD 2
#define EDVS_CONFIG_BIAS_PUX 3
#define EDVS_CONFIG_BIAS_DIFFOFF 4
#define EDVS_CONFIG_BIAS_REQ 5
#define EDVS_CONFIG_BIAS_REFR 6
#define EDVS_CONFIG_BIAS_PUY 7
#define EDVS_CONFIG_BIAS_DIFFON 8
#define EDVS_CONFIG_BIAS_DIFF 9
#define EDVS_CONFIG_BIAS_FOLL 10
#define EDVS_CONFIG_BIAS_PR 11

struct caer_edvs_info {
    int16_t deviceID;
    char *deviceString;
    bool deviceIsMaster;
    int16_t dvsSizeX;
    int16_t dvsSizeY;
    char serialPortName[64];
    uint32_t serialBaudRate;
};

LIBRARY_PUBLIC_VISIBILITY struct caer_edvs_info caerEDVSInfoGet(caerDeviceHandle handle);

#ifdef __cplusplus
}
#endif

#endif /* LIBCAER_DEVICES_EDVS_H_ */