Info | Value |
---|---|
Header | mvnc.h |
Library | libmvnc.so |
Version | 2.0 |
See also | struct ncDeviceHandle_t, ncDeviceOption_t, ncDeviceGetOption() |
This function sets an option value for a neural compute device. The available options and possible values can be found in the ncDeviceOption_t enumeration.
ncStatus_t ncDeviceSetOption(struct ncDeviceHandle_t* deviceHandle,
int option, const void* data,
unsigned int dataLength);
Name | Type | Description |
---|---|---|
deviceHandle | struct ncDeviceHandle_t* | A pointer to an ncDeviceHandle_t struct for the device for which the option value will be set. The device state must be NC_DEVICE_CREATED or NC_DEVICE_OPENED. |
option | int | A value from the ncDeviceOption_t enumeration that specifies which option’s value will be set. |
data | const void* | A pointer to a buffer containing the new value for the option. The type of data this points to depends on the option that is specified. Check ncDeviceOption_t for option data types. |
dataLength | unsigned int | An unsigned int that contains the length, in bytes, of the buffer that the data parameter points to. |
An appropriate value from the ncStatus_t enumeration.
N/A