initial commit
admw_1001.c File Reference
: API implementation for ADMW1001 ----------------------------------------------------------------------------- More...
Go to the source code of this file.
Functions | |
ADMW_RESULT | admw_Open (unsigned const nDeviceIndex, ADMW_CONNECTION *const pConnectionInfo, ADMW_DEVICE_HANDLE *const phDevice) |
Open ADMW device handle and set up communication interface. | |
ADMW_RESULT | admw_GetGpioState (ADMW_DEVICE_HANDLE const hDevice, ADMW_GPIO_PIN const ePinId, bool *const pbAsserted) |
Get the current state of the specified GPIO input signal. | |
ADMW_RESULT | admw_RegisterGpioCallback (ADMW_DEVICE_HANDLE const hDevice, ADMW_GPIO_PIN const ePinId, ADMW_GPIO_CALLBACK const callbackFunction, void *const pCallbackParam) |
Register an application-defined callback function for GPIO interrupts. | |
ADMW_RESULT | admw_Reset (ADMW_DEVICE_HANDLE const hDevice) |
Reset the specified ADMW device. | |
ADMW_RESULT | admw_GetStatus (ADMW_DEVICE_HANDLE const hDevice, ADMW_STATUS *const pStatus) |
Get general status of ADMW module. | |
ADMW_RESULT | admw_GetCommandRunningState (ADMW_DEVICE_HANDLE hDevice, bool *pbCommandRunning) |
Check if a command is currently running on the device. | |
ADMW_RESULT | admw_ApplyConfigUpdates (ADMW_DEVICE_HANDLE const hDevice) |
Apply the configuration settings currently stored in device registers. | |
ADMW_RESULT | admw_StartMeasurement (ADMW_DEVICE_HANDLE const hDevice, ADMW_MEASUREMENT_MODE const eMeasurementMode) |
Start a measurement cycle. | |
ADMW_RESULT | admw_SaveConfig (ADMW_DEVICE_HANDLE const hDevice, ADMW_USER_CONFIG_SLOT const eSlotId) |
Store the configuration settings to persistent memory on the device. | |
ADMW_RESULT | admw_RestoreConfig (ADMW_DEVICE_HANDLE const hDevice, ADMW_USER_CONFIG_SLOT const eSlotId) |
Restore configuration settings from persistent memory on the device. | |
ADMW_RESULT | admw_SaveLutData (ADMW_DEVICE_HANDLE const hDevice) |
Store the LUT data to persistent memory on the device. | |
ADMW_RESULT | admw_RestoreLutData (ADMW_DEVICE_HANDLE const hDevice) |
Restore LUT data from persistent memory on the device. | |
ADMW_RESULT | admw_StopMeasurement (ADMW_DEVICE_HANDLE const hDevice) |
Stop the measurement cycles on the device. | |
ADMW_RESULT | admw_GetData (ADMW_DEVICE_HANDLE const hDevice, ADMW_MEASUREMENT_MODE const eMeasurementMode, ADMW_DATA_SAMPLE *const pSamples, uint8_t const nBytesPerSample, uint32_t const nRequested, uint32_t *const pnReturned) |
Read measurement data samples from the device registers. | |
ADMW_RESULT | admw_Close (ADMW_DEVICE_HANDLE const hDevice) |
Close ADMW device context and free resources. | |
ADMW_RESULT | admw1001_WriteRegister (ADMW_DEVICE_HANDLE hDevice, uint16_t nAddress, void *pData, unsigned nLength) |
Write one or more device registers at the specified register address. | |
ADMW_RESULT | admw1001_Write_Debug_Register (ADMW_DEVICE_HANDLE hDevice, uint16_t nAddress, void *pData, unsigned nLength) |
Write one or more device registers at the specified debug register address. | |
ADMW_RESULT | admw1001_ReadRegister (ADMW_DEVICE_HANDLE hDevice, uint16_t nAddress, void *pData, unsigned nLength) |
Read one or more device registers at the specified register address. | |
ADMW_RESULT | admw1001_Read_Debug_Register (ADMW_DEVICE_HANDLE hDevice, uint16_t nAddress, void *pData, unsigned nLength) |
Read one or more device registers at the specified debug register address. | |
ADMW_RESULT | admw_GetDeviceReadyState (ADMW_DEVICE_HANDLE const hDevice, bool *const bReady) |
Check if the device is ready, following power-up or a reset. | |
ADMW_RESULT | admw1001_GetDataReadyModeInfo (ADMW_DEVICE_HANDLE const hDevice, ADMW_MEASUREMENT_MODE const eMeasurementMode, ADMW1001_OPERATING_MODE *const peOperatingMode, ADMW1001_DATAREADY_MODE *const peDataReadyMode, uint32_t *const pnSamplesPerDataready, uint32_t *const pnSamplesPerCycle, uint8_t *const pnBytesPerSample) |
Get the number of samples available when DATAREADY status is asserted. | |
ADMW_RESULT | admw_GetProductID (ADMW_DEVICE_HANDLE hDevice, ADMW_PRODUCT_ID *pProductId) |
Obtain the product ID from the device. | |
ADMW_RESULT | admw1001_SetMeasurementConfig (ADMW_DEVICE_HANDLE hDevice, ADMW1001_MEASUREMENT_CONFIG *pMeasConfig) |
Update measurement configuration settings on the device. | |
ADMW_RESULT | admw1001_SetDiagnosticsConfig (ADMW_DEVICE_HANDLE hDevice, ADMW1001_DIAGNOSTICS_CONFIG *pDiagnosticsConfig) |
Update diagnostics configuration settings on the device. | |
ADMW_RESULT | admw1001_SetChannelCount (ADMW_DEVICE_HANDLE hDevice, ADMW1001_CH_ID eChannelId, uint32_t nMeasurementsPerCycle) |
Update number of measurements-per-cycle for a specific channel. | |
ADMW_RESULT | admw1001_SetChannelThresholdLimits (ADMW_DEVICE_HANDLE hDevice, ADMW1001_CH_ID eChannelId, float32_t fHighThresholdLimit, float32_t fLowThresholdLimit) |
Update the measurement threshold limits for a specified channel. | |
ADMW_RESULT | admw1001_SetSensorParameter (ADMW_DEVICE_HANDLE hDevice, ADMW1001_CH_ID eChannelId, float32_t fSensorParam) |
Set a sensor specific parameter for a specified channel. | |
ADMW_RESULT | admw1001_SetChannelSettlingTime (ADMW_DEVICE_HANDLE hDevice, ADMW1001_CH_ID eChannelId, uint32_t nSettlingTime) |
Update the extra settling time for a specified channel. | |
ADMW_RESULT | admw1001_SetChannelConfig (ADMW_DEVICE_HANDLE hDevice, ADMW1001_CH_ID eChannelId, ADMW1001_CHANNEL_CONFIG *pChannelConfig) |
Update channel configuration settings for a specific channel. | |
ADMW_RESULT | admw_SetConfig (ADMW_DEVICE_HANDLE const hDevice, ADMW_CONFIG *const pConfig) |
Write full configuration settings to the device registers. | |
ADMW_RESULT | admw1001_SetLutDataRaw (ADMW_DEVICE_HANDLE const hDevice, ADMW1001_LUT_RAW *const pLutData) |
Write Look-Up Table raw data to the device memory. | |
ADMW_RESULT | admw1001_AssembleLutData (ADMW1001_LUT *pLutBuffer, unsigned nLutBufferSize, unsigned const nNumTables, ADMW1001_LUT_DESCRIPTOR *const ppDesc[], ADMW1001_LUT_TABLE_DATA *const ppData[]) |
Assemble a list of separate Look-Up Tables into a single buffer. | |
ADMW_RESULT | admw1001_SetLutData (ADMW_DEVICE_HANDLE const hDevice, ADMW1001_LUT *const pLutData) |
Write Look-Up Table data to the device memory. |
Detailed Description
: API implementation for ADMW1001 -----------------------------------------------------------------------------
Definition in file admw_1001.c.
Generated on Tue Jul 12 2022 12:46:53 by 1.7.2