24 lines
602 B
C
24 lines
602 B
C
#ifndef __BASE_DEVICE_H__
|
|
#define __BASE_DEVICE_H__
|
|
|
|
#include "hmmmm.h"
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
void* specs;
|
|
device_lib_t* lib;
|
|
device_public_context_t* ctx;
|
|
uint64_t clockCycleLimit;
|
|
uint64_t clockCycleCounter;
|
|
uint64_t clockDivider;
|
|
} 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__
|