29 #ifndef OCEANDIRECT_GPIO_FEATURE_ADAPTER_H
30 #define OCEANDIRECT_GPIO_FEATURE_ADAPTER_H
32 #include "api/adapters/FeatureAdapterTemplate.h"
33 #include "vendors/OceanOptics/features/gpio/GpioFeatureInterface.h"
41 const FeatureFamily &f,
42 Protocol *p, Bus *b,
unsigned short instanceIndex);
46 int getNumberOfGPIO(
int *errorCode);
47 void setOutputEnable(
int *errorCode, std::uint32_t bitPosition,
bool isOutput);
48 void setOutputEnable(
int *errorCode, std::uint32_t bits, std::uint32_t bitmask);
49 bool getOutputEnable(
int *errorCode,
int bit);
50 std::uint32_t getOutputEnable(
int *errorCode);
51 void setValue(
int *errorCode, std::uint32_t bitPosition,
bool value);
52 void setValue(
int *errorCode, std::uint32_t bitmask);
53 void setValue(
int *errorCode, std::uint32_t bits, std::uint32_t bitmask);
54 bool getValue(
int *errorCode,
int bit);
55 std::uint32_t getValue(
int *errorCode);
56 void gpioSetOutputAlternate(
int *errorCode,
int bit,
bool isAlternate);
57 void gpioSetOutputAlternate(
int *errorCode, uint32_t bitMask);
58 bool gpioGetOutputAlternate(
int *errorCode,
int bit);
59 uint32_t gpioGetOutputAlternate(
int *errorCode);
Definition: FeatureAdapterTemplate.h:44
Definition: GpioFeatureAdapter.h:38
This is an interface to Advance features of OceanDirect that allow access to less common controls....
Definition: AcquisitionDelayFeatureAdapter.h:35