Initial commit
This commit is contained in:
21
inc/base_device.h
Normal file
21
inc/base_device.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __BASE_DEVICE_H__
|
||||
#define __BASE_DEVICE_H__
|
||||
|
||||
#include "hmmmm.h"
|
||||
|
||||
typedef struct {
|
||||
void* specs;
|
||||
device_lib_t* lib;
|
||||
device_public_context_t* ctx;
|
||||
uint64_t clockCycleLimit;
|
||||
uint64_t clockCycleCounter;
|
||||
} device_handle_t;
|
||||
|
||||
|
||||
device_handle_t* openBaseDeviceFromConfig(const char* configPath, char* errbuf);
|
||||
device_handle_t* openBaseDevice(conf_dev_t* devConf, char* errbuf);
|
||||
conf_dev_t* openBaseDeviceConfig(const char* configPath, char* errbuf);
|
||||
void closeBaseDevice(device_handle_t* devHandle);
|
||||
|
||||
|
||||
#endif // ifndef __BASE_DEVICE_H__
|
||||
Reference in New Issue
Block a user