49 #define WGE100LIB_VERSION_MAJOR 0x01 50 #define WGE100LIB_VERSION_MINOR 0x05 51 #define WGE100LIB_VERSION ((WGE100LIB_VERSION_MAJOR <<8) | WGE100LIB_VERSION_MINOR ) 58 #define TRIG_STATE_INTERNAL 0 59 #define TRIG_STATE_EXTERNAL 1 60 #define TRIG_STATE_ALTERNATE 4 61 #define TRIG_STATE_RISING 2 80 struct timeval startTime;
110 typedef int (*
FrameHandler)(wge100FrameInfo *frame_info,
void *userData);
114 #define CONFIG_PRODUCT_ID 6805018 115 #define ERR_TIMEOUT 100 116 #define ERR_CONFIG_ARPFAIL 200 122 #endif // _WGE100LIB_H_
int wge100ReliableFlashRead(const IpCamList *camInfo, uint32_t address, uint8_t *pageDataOut, int *retries)
int wge100ReliableFlashWrite(const IpCamList *camInfo, uint32_t address, const uint8_t *pageDataIn, int *retries)
int wge100Reset(IpCamList *camInfo)
int wge100Configure(IpCamList *camInfo, const char *ipAddress, unsigned wait_us)
int wge100ReliableSensorRead(const IpCamList *camInfo, uint8_t reg, uint16_t *data, int *retries)
int wge100FlashWrite(const IpCamList *camInfo, uint32_t address, const uint8_t *pageDataIn)
int wge100FlashRead(const IpCamList *camInfo, uint32_t address, uint8_t *pageDataOut)
int wge100ReliableSensorWrite(const IpCamList *camInfo, uint8_t reg, uint16_t data, int *retries)
int wge100FindByUrl(const char *url, IpCamList *camera, unsigned wait_us, const char **errmsg)
int wge100ImagerModeSelect(const IpCamList *camInfo, uint32_t mode)
int wge100VidReceiveAuto(IpCamList *camera, size_t height, size_t width, FrameHandler frameHandler, void *userData)
int wge100TriggerControl(const IpCamList *camInfo, uint32_t triggerType)
int wge100Discover(const char *ifName, IpCamList *ipCamList, const char *ipAddress, unsigned wait_us)
int wge100ImagerSetRes(const IpCamList *camInfo, uint16_t horizontal, uint16_t vertical)
int wge100GetTimer(const IpCamList *camInfo, uint64_t *time_us)
int wge100LibVersion(void)
int wge100StopVid(const IpCamList *camInfo)
int wge100ConfigureBoard(const IpCamList *camInfo, uint32_t serial, MACAddress *mac)
int wge100VidReceive(const char *ifName, uint16_t port, size_t height, size_t width, FrameHandler frameHandler, void *userData)
int(* FrameHandler)(wge100FrameInfo *frame_info, void *userData)
A FrameHandler function returns zero to continue to receive data, non-zero otherwise.
int wge100SensorRead(const IpCamList *camInfo, uint8_t reg, uint16_t *data)
int wge100ReconfigureFPGA(IpCamList *camInfo)
int wge100StartVid(const IpCamList *camInfo, const uint8_t mac[6], const char *ipAddress, uint16_t port)
int wge100SensorWrite(const IpCamList *camInfo, uint8_t reg, uint16_t data)
int wge100SensorSelect(const IpCamList *camInfo, uint8_t index, uint32_t reg)