#include <bluemelon/types.h>
#include <bluesense/external/bsDeviceInterface.h>
#include <bluesense/external/bsDeviceTable.h>
The BM7003 can be used to convert analogue signals into digital values. The module contains six inputs for different analogue signals. Via software you can configure the resolution of the AD coversion from 1 to 10 bits. The sample rate canbe adjusted in steps of 1 ms to a maximum of 1000 samples per second.
|
|
The number of ADC ports of an analog input module |
|
|
The maximul allowd vref setting. 5000mV = 5V |
|
|
The resolution can be set between 1 and 10 |
|
|
This (opaque) structure represents the device specific data of an adcInputDevice
|
|
|
Checks if a configuration is being currently being set or being retrieved
|
|
|
In the case of an event getChangedInputsMask returns an 8 bit value indicating which inputs have changed. The mask is set to zero after calling this function. bit 0 set --> input 0 changed
|
|
|
Obtain the last retrieved resolution settings.
|
|
|
Obtain the last retrieved sample delay settings.
|
|
|
Obtain the last retrieved voltage reference settings.
|
|
|
Returns a adc instance from a device info pointer (obtained from the device table).
|
|
||||||||||||
|
Retrieve the last received sample at a certain port.
|
|
|
Checks if the configuration request is finished
|
|
|
Checks if the configuration set request is finished
|
|
|
|
|
|
Returns the current set time out delay. The time out delay is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
|
|
Request to obtain the configuration settings from a adcInput Device.
|
|
||||||||||||||||||||
|
Request the adcInput device to set a new reference voltage, sample delay and resolution
|
|
||||||||||||
|
Requests the adcInput device to set a new sample resolution
|
|
||||||||||||
|
Requests the adcInput device to set a new sample delay
|
|
||||||||||||
|
Requests the adcInput device to set a new reference voltage
|
|
|
Resets the software state. The timeout value is set to the default value. The configuration is requested from the device
|
|
||||||||||||
|
Sets the time out value which is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
1.4.4