![]() |
SparkFun Pulsed Coherent Radar Sensor
v2.0.0-3-g4d2d89c
Library for the SparkFun Pulsed Coherent Radar Sensor
|
#include <sfDevXM125Presence.h>
Public Member Functions | |
sfTkError_t | begin (sfTkII2C *theBus=nullptr) |
Initializes the Presence detector device. More... | |
sfTkError_t | detectorStart (uint32_t start=1000, uint32_t end=5000) |
This function sets all the beginning values for a basic I2C example to be run on the device for presence sensing. More... | |
sfTkError_t | getDistanceValuemm (uint32_t &presenceVal) |
This function returns the presence value of the register with all the checks in place as per the I2C Datasheet. More... | |
sfTkError_t | getDetectorVersion (uint32_t &major, uint32_t &minor, uint32_t &patch) |
This function returns the RSS version number. More... | |
sfTkError_t | getDetectorError (uint32_t &error) |
This function returns the protocol state erorr. More... | |
sfTkError_t | getMeasureCounter (uint32_t &counter) |
This function returns the measure counter; the number of measurements performed since restart. More... | |
sfTkError_t | getDetectorStatus (uint32_t &status) |
This function returns the detector status flags. See page 17, section 6.2.4 Detector Status. More... | |
sfTkError_t | getDetectorErrorStatus (uint32_t &status) |
This function returns the error status according to the bit mask value for the presence devices errors and busy bit. More... | |
sfTkError_t | getDetectorPresenceDetected (uint32_t &detected) |
This function returns if there was presence detected. More... | |
sfTkError_t | getDetectorPresenceStickyDetected (uint32_t &sticky) |
This function returns if there was presence detected, sticky bit with clear on read. More... | |
sfTkError_t | getDetectorRegError (uint32_t &error) |
This function returns the indication that the presence detector failed. More... | |
sfTkError_t | getTemperature (uint32_t &temp) |
This function returns the temperature in sensor during measurement (in degree Celsius). Note that it has poor absolute accuracy and should only be used for relative temperature measurements. More... | |
sfTkError_t | getDistance (uint32_t &distance) |
This function returns the distance, in millimeters, for the detected presence. More... | |
sfTkError_t | getIntraPresenceScore (uint32_t &intra) |
This function returns the measure of amount of fast motion detected. More... | |
sfTkError_t | getInterPresenceScore (uint32_t &inter) |
This function returns the measure of amount of slow motion detected. More... | |
sfTkError_t | getSweepsPerFrame (uint32_t &sweeps) |
This function returns the number of sweeps that will be captured in each frame (measurement). Default Value: 16 seconds. More... | |
sfTkError_t | setSweepsPerFrame (uint32_t sweeps) |
This function sets the number of sweeps that will be captured in each frame (measurement). Default Value: 16 seconds. More... | |
sfTkError_t | getInterFramePresenceTimeout (uint32_t &time) |
Returns the number of seconds the inter-frame presence score needs to decrease before exponential scaling starts for faster decline. Should be between 0 and 30 where 0 means no timeout. Default Value: 3 seconds. More... | |
sfTkError_t | setInterFramePresenceTimeout (uint32_t time) |
Sets the number of seconds the inter-frame presence score needs to decrease before exponential scaling starts for faster decline. Should be between 0 and 30 where 0 means no timeout. Default Value: 3 seconds. More... | |
sfTkError_t | getInterPhaseBoostEnabled (bool &en) |
This function returns the enable to increase detection of slow motions by utilizing the phase information in the Sparse IQ data. More... | |
sfTkError_t | setInterPhaseBoostEnabled (bool en) |
This function sets the enable to increase detection of slow motions by utilizing the phase information in the Sparse IQ data. More... | |
sfTkError_t | getIntraDetectionEnabled (bool &en) |
This function returns the bit to enable to detect faster movements inside frames. Default Value: true. More... | |
sfTkError_t | setInterDetectionEnabled (bool en) |
This function returns the bit to enable to detect slower movements between frames. Default Value: true. More... | |
sfTkError_t | getFrameRate (uint32_t &rate) |
This function returns the presence detector frame rate. Note: This value is a factor 1000 larger than the RSS value Default Value: 12000 mHz. More... | |
sfTkError_t | setFrameRate (uint32_t rate) |
This function sets the presence detector frame rate. Note: This value is a factor 1000 larger than the RSS value Default Value: 12000 mHz. More... | |
sfTkError_t | getIntraDetectionThreshold (uint32_t &thresh) |
This function returns the threshold for detecting faster movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1300. More... | |
sfTkError_t | setIntraDetectionThreshold (uint32_t thresh) |
This function sets the threshold for detecting faster movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1300. More... | |
sfTkError_t | getInterDetectionThreshold (uint32_t &thresh) |
This function returns the threshold for detecting slower movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1000. More... | |
sfTkError_t | setInterDetectionThreshold (uint32_t thresh) |
This function sets the threshold for detecting slower movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1000. More... | |
sfTkError_t | getInterFrameDeviationTime (uint32_t &time) |
This function returns the time constant of the low pass filter for the inter-frame deviation between fast and slow. Note: This value is a factor 1000 larger than the RSS value Default Value: 500 ms. More... | |
sfTkError_t | setInterFrameDeviationTime (uint32_t time) |
This function sets the time constant of the low pass filter for the inter-frame deviation between fast and slow. Note: This value is a factor 1000 larger than the RSS value Default Value: 500 ms. More... | |
sfTkError_t | getInterFrameFastCutoff (uint32_t &cut) |
This function returns the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 6000 mHz. More... | |
sfTkError_t | setInterFrameFastCutoff (uint32_t cut) |
This function sets the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 6000 mHz. More... | |
sfTkError_t | getInterFrameSlowCutoff (uint32_t &cut) |
This function returns the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 200 mHz. More... | |
sfTkError_t | setInterFrameSlowCutoff (uint32_t cut) |
This function sets the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 200 mHz. More... | |
sfTkError_t | getIntraFrameTimeConst (uint32_t &time) |
This functions returns time constant for the depthwise filtering in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 150ms. More... | |
sfTkError_t | setIntraFrameTimeConst (uint32_t time) |
This functions sets time constant for the depthwise filtering in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 150ms. More... | |
sfTkError_t | getIntraOutputTimeConst (uint32_t &time) |
This function returns time constant for the output in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 300ms. More... | |
sfTkError_t | setIntraOutputTimeConst (uint32_t time) |
This function sets the time constant for the output in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 300ms. More... | |
sfTkError_t | getInterOutputTimeConst (uint32_t &time) |
This function returns time constant for the output in the inter-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 2000ms. More... | |
sfTkError_t | setInterOutputTimeConst (uint32_t time) |
This function sets the time constant for the output in the inter-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 2000ms. More... | |
sfTkError_t | getAutoProfileEn (bool &en) |
This function returns if enable/disable for the automatic selection of profile based on start point of measurement. Default Value: true. More... | |
sfTkError_t | setAutoProfileEn (bool en) |
This function enables/disables the automatic selection of profile based on start point of measurement. Default Value: true. More... | |
sfTkError_t | getAutoStepLengthEn (bool &en) |
This function returns the Enable/Disable automatic selection of step length based on the profile. More... | |
sfTkError_t | setAutoStepLengthEn (bool en) |
This function Enables/Disables automatic selection of step length based on the profile. More... | |
sfTkError_t | getManualProfile (uint32_t &prof) |
This function returns the profile in use. The profile will only be used if profile auto selection was disabled. More... | |
sfTkError_t | setManualProfile (uint32_t prof) |
This function sets the profile to use. The profile will only be used if profile auto selection was disabled. More... | |
sfTkError_t | getManualStepLength (uint32_t &length) |
THis function returns the number of steps between each data point. NOTE: The manual step length will only be used if step length auto selection was disabled Default Value: 72. More... | |
sfTkError_t | setManualStepLength (uint32_t length) |
THis function returns the number of steps between each data point. NOTE: The manual step length will only be used if step length auto selection was disabled Default Value: 72. More... | |
sfTkError_t | getStart (uint32_t &start) |
This function returns the start of measured interval in mm. Note: This value is a factor 1000 larger than the RSS value Default Value: 300mm. More... | |
sfTkError_t | setStart (uint32_t start) |
This function sets the start of measured interval in mm. Note: This value is a factor 1000 larger than the RSS value Default Value: 300mm. More... | |
sfTkError_t | getEnd (uint32_t &end) |
This function returns the end point of measurement interval in millimeters. Note: This value is a factor 1000 larger than the RSS value Default Value: 2500. More... | |
sfTkError_t | setEnd (uint32_t end) |
This function returns the end point of measurement interval in millimeters. Note: This value is a factor 1000 larger than the RSS value Default Value: 2500. More... | |
sfTkError_t | getResetFilters (bool &reset) |
This function returns if the device is enabled/disabled for the reset of the presence filters during start/restart. Default Value: true. More... | |
sfTkError_t | setResetFilters (bool reset) |
This function sets if the device is enabled/disabled for the reset of the presence filters during start/restart . Default Value: true. More... | |
sfTkError_t | getHWAAS (uint32_t &avg) |
This function returns the hardware accelerated average sampled (HWAAS). Default Value: 32. More... | |
sfTkError_t | setHWAAS (uint32_t avg) |
This function sets the hardware accelerated average sampled (HWAAS). Default Value: 32. More... | |
sfTkError_t | getDetectionOnGPIO (uint32_t &detected) |
This function returns the output presence detection on generic GPIO. More... | |
sfTkError_t | setDetectionOnGPIO (uint32_t detected) |
This function returns the output presence detection on generic GPIO. More... | |
sfTkError_t | setCommand (uint32_t cmd) |
This function sets the execute command. More... | |
sfTkError_t | applyConfiguration () |
This function applies the configuration to the device by writing the defined value to the presence command register. More... | |
sfTkError_t | start () |
This function starts the device by writing the defined start value to the presence command register. More... | |
sfTkError_t | stop () |
This function stops the device by writing the defined stop value to the presence command register. More... | |
sfTkError_t | enableUartLogs () |
This function enables the uart logs of the device by writing the defined value to the presence command register. More... | |
sfTkError_t | disableUartLogs () |
This function disables the uart logs of the device by writing the defined value to the presence command register. More... | |
sfTkError_t | logConfiguration () |
This function enables the configuration log of the device by writing the defined value to the presence command register. More... | |
sfTkError_t | reset () |
This function resets the presence detector settings of the device. More... | |
sfTkError_t | getBusy (uint32_t &busy) |
This function returns the busy bit of the presence status register. More... | |
sfTkError_t | busyWait () |
Completes a busy wait loop while the device is uploading information by waiting for the status. Checks the error status register to wait until errors are completed/gone. More... | |
sfTkError_t | init (sfTkII2C *theBus=nullptr) |
This function begins the examples/communication. More... | |
Protected Attributes | |
sfTkII2C * | _theBus |
sfTkError_t sfDevXM125Presence::applyConfiguration | ( | ) |
This function applies the configuration to the device by writing the defined value to the presence command register.
sfTkError_t sfDevXM125Presence::begin | ( | sfTkII2C * | theBus = nullptr | ) |
Initializes the Presence detector device.
This function sets up the I2C communication and performs initial checks to ensure the device is ready for operation.
theBus | Pointer to the I2C bus object. If nullptr, the default bus is used. |
sfTkError_t sfDevXM125Presence::busyWait | ( | ) |
Completes a busy wait loop while the device is uploading information by waiting for the status. Checks the error status register to wait until errors are completed/gone.
sfTkError_t sfDevXM125Presence::detectorStart | ( | uint32_t | start = 1000 , |
uint32_t | end = 5000 |
||
) |
This function sets all the beginning values for a basic I2C example to be run on the device for presence sensing.
start | Start value for presence sensing in mm - default value is 1000 |
end | End value for presence sensing in mm - default value is 5000 |
sfTkError_t sfDevXM125Presence::disableUartLogs | ( | ) |
This function disables the uart logs of the device by writing the defined value to the presence command register.
sfTkError_t sfDevXM125Presence::enableUartLogs | ( | ) |
This function enables the uart logs of the device by writing the defined value to the presence command register.
sfTkError_t sfDevXM125Presence::getAutoProfileEn | ( | bool & | en | ) |
This function returns if enable/disable for the automatic selection of profile based on start point of measurement. Default Value: true.
en | enable/disable selection |
sfTkError_t sfDevXM125Presence::getAutoStepLengthEn | ( | bool & | en | ) |
This function returns the Enable/Disable automatic selection of step length based on the profile.
en | Enable/disable selection |
sfTkError_t sfDevXM125Presence::getBusy | ( | uint32_t & | busy | ) |
This function returns the busy bit of the presence status register.
busy | Device busy or not |
sfTkError_t sfDevXM125Presence::getDetectionOnGPIO | ( | uint32_t & | detected | ) |
This function returns the output presence detection on generic GPIO.
detected | Output presence detected |
sfTkError_t sfDevXM125Presence::getDetectorError | ( | uint32_t & | error | ) |
This function returns the protocol state erorr.
state | Error code for device 0 = Protocol state error 1 = Packet length error 2 = Address error 3 = Write failed 4 = Write to read only |
sfTkError_t sfDevXM125Presence::getDetectorErrorStatus | ( | uint32_t & | status | ) |
This function returns the error status according to the bit mask value for the presence devices errors and busy bit.
status | Error status of device (see function for exact error) |
sfTkError_t sfDevXM125Presence::getDetectorPresenceDetected | ( | uint32_t & | detected | ) |
This function returns if there was presence detected.
detected | Presence Detected |
sfTkError_t sfDevXM125Presence::getDetectorPresenceStickyDetected | ( | uint32_t & | sticky | ) |
This function returns if there was presence detected, sticky bit with clear on read.
sticky | Sticky Presence Detected |
sfTkError_t sfDevXM125Presence::getDetectorRegError | ( | uint32_t & | error | ) |
This function returns the indication that the presence detector failed.
calibrate | Indication of sensor calibration |
sfTkError_t sfDevXM125Presence::getDetectorStatus | ( | uint32_t & | status | ) |
This function returns the detector status flags. See page 17, section 6.2.4 Detector Status.
status | Status detector flag |
sfTkError_t sfDevXM125Presence::getDetectorVersion | ( | uint32_t & | major, |
uint32_t & | minor, | ||
uint32_t & | patch | ||
) |
This function returns the RSS version number.
version | Version number |
patch | Patch version number |
sfTkError_t sfDevXM125Presence::getDistance | ( | uint32_t & | distance | ) |
This function returns the distance, in millimeters, for the detected presence.
distance | distance in mm |
sfTkError_t sfDevXM125Presence::getDistanceValuemm | ( | uint32_t & | presenceVal | ) |
This function returns the presence value of the register with all the checks in place as per the I2C Datasheet.
sfTkError_t sfDevXM125Presence::getEnd | ( | uint32_t & | end | ) |
This function returns the end point of measurement interval in millimeters. Note: This value is a factor 1000 larger than the RSS value Default Value: 2500.
end | End point of measurement in mm |
sfTkError_t sfDevXM125Presence::getFrameRate | ( | uint32_t & | rate | ) |
This function returns the presence detector frame rate. Note: This value is a factor 1000 larger than the RSS value Default Value: 12000 mHz.
rate | Frame rate, in mHz |
sfTkError_t sfDevXM125Presence::getHWAAS | ( | uint32_t & | avg | ) |
This function returns the hardware accelerated average sampled (HWAAS). Default Value: 32.
avg | average samples |
sfTkError_t sfDevXM125Presence::getInterDetectionThreshold | ( | uint32_t & | thresh | ) |
This function returns the threshold for detecting slower movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1000.
thresh | threshold for faster movements |
sfTkError_t sfDevXM125Presence::getInterFrameDeviationTime | ( | uint32_t & | time | ) |
This function returns the time constant of the low pass filter for the inter-frame deviation between fast and slow. Note: This value is a factor 1000 larger than the RSS value Default Value: 500 ms.
time | time in ms |
sfTkError_t sfDevXM125Presence::getInterFrameFastCutoff | ( | uint32_t & | cut | ) |
This function returns the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 6000 mHz.
cut | cutoff frequency in mHz |
sfTkError_t sfDevXM125Presence::getInterFramePresenceTimeout | ( | uint32_t & | time | ) |
Returns the number of seconds the inter-frame presence score needs to decrease before exponential scaling starts for faster decline. Should be between 0 and 30 where 0 means no timeout. Default Value: 3 seconds.
time | Number of seconds |
sfTkError_t sfDevXM125Presence::getInterFrameSlowCutoff | ( | uint32_t & | cut | ) |
This function returns the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 200 mHz.
cut | cutoff frequency in mHz |
sfTkError_t sfDevXM125Presence::getInterOutputTimeConst | ( | uint32_t & | time | ) |
This function returns time constant for the output in the inter-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 2000ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::getInterPhaseBoostEnabled | ( | bool & | en | ) |
This function returns the enable to increase detection of slow motions by utilizing the phase information in the Sparse IQ data.
en | Enables increased detection Default Value: false |
sfTkError_t sfDevXM125Presence::getInterPresenceScore | ( | uint32_t & | inter | ) |
This function returns the measure of amount of slow motion detected.
inter | Measure of slow motion |
sfTkError_t sfDevXM125Presence::getIntraDetectionEnabled | ( | bool & | en | ) |
This function returns the bit to enable to detect faster movements inside frames. Default Value: true.
en | Enables faster detection |
sfTkError_t sfDevXM125Presence::getIntraDetectionThreshold | ( | uint32_t & | thresh | ) |
This function returns the threshold for detecting faster movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1300.
thresh | threshold for faster movements |
sfTkError_t sfDevXM125Presence::getIntraFrameTimeConst | ( | uint32_t & | time | ) |
This functions returns time constant for the depthwise filtering in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 150ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::getIntraOutputTimeConst | ( | uint32_t & | time | ) |
This function returns time constant for the output in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 300ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::getIntraPresenceScore | ( | uint32_t & | intra | ) |
This function returns the measure of amount of fast motion detected.
intra | Measure of fast motion |
sfTkError_t sfDevXM125Presence::getManualProfile | ( | uint32_t & | prof | ) |
This function returns the profile in use. The profile will only be used if profile auto selection was disabled.
prof | Profile to use (enum) |
sfTkError_t sfDevXM125Presence::getManualStepLength | ( | uint32_t & | length | ) |
THis function returns the number of steps between each data point. NOTE: The manual step length will only be used if step length auto selection was disabled Default Value: 72.
length | number of steps |
sfTkError_t sfDevXM125Presence::getMeasureCounter | ( | uint32_t & | counter | ) |
This function returns the measure counter; the number of measurements performed since restart.
counter | number of measurements |
sfTkError_t sfDevXM125Presence::getResetFilters | ( | bool & | reset | ) |
This function returns if the device is enabled/disabled for the reset of the presence filters during start/restart. Default Value: true.
reset | enabled/disabled |
sfTkError_t sfDevXM125Presence::getStart | ( | uint32_t & | start | ) |
This function returns the start of measured interval in mm. Note: This value is a factor 1000 larger than the RSS value Default Value: 300mm.
start | measured start interval in mm |
sfTkError_t sfDevXM125Presence::getSweepsPerFrame | ( | uint32_t & | sweeps | ) |
This function returns the number of sweeps that will be captured in each frame (measurement). Default Value: 16 seconds.
sweeps | Number of sweeps |
sfTkError_t sfDevXM125Presence::getTemperature | ( | uint32_t & | temp | ) |
This function returns the temperature in sensor during measurement (in degree Celsius). Note that it has poor absolute accuracy and should only be used for relative temperature measurements.
temp | Relative temperature |
|
inherited |
This function begins the examples/communication.
sfTkError_t sfDevXM125Presence::logConfiguration | ( | ) |
This function enables the configuration log of the device by writing the defined value to the presence command register.
sfTkError_t sfDevXM125Presence::reset | ( | ) |
This function resets the presence detector settings of the device.
sfTkError_t sfDevXM125Presence::setAutoProfileEn | ( | bool | en | ) |
This function enables/disables the automatic selection of profile based on start point of measurement. Default Value: true.
en | enable/disable selection |
sfTkError_t sfDevXM125Presence::setAutoStepLengthEn | ( | bool | en | ) |
This function Enables/Disables automatic selection of step length based on the profile.
en | Enable/disable selection |
sfTkError_t sfDevXM125Presence::setCommand | ( | uint32_t | cmd | ) |
This function sets the execute command.
cmd | command to send to device |
sfTkError_t sfDevXM125Presence::setDetectionOnGPIO | ( | uint32_t | detected | ) |
This function returns the output presence detection on generic GPIO.
detected | Output presence detected |
sfTkError_t sfDevXM125Presence::setEnd | ( | uint32_t | end | ) |
This function returns the end point of measurement interval in millimeters. Note: This value is a factor 1000 larger than the RSS value Default Value: 2500.
end | End point of measurement in mm |
sfTkError_t sfDevXM125Presence::setFrameRate | ( | uint32_t | rate | ) |
This function sets the presence detector frame rate. Note: This value is a factor 1000 larger than the RSS value Default Value: 12000 mHz.
rate | Frame rate, in mHz |
sfTkError_t sfDevXM125Presence::setHWAAS | ( | uint32_t | avg | ) |
This function sets the hardware accelerated average sampled (HWAAS). Default Value: 32.
avg | average samples |
sfTkError_t sfDevXM125Presence::setInterDetectionEnabled | ( | bool | en | ) |
This function returns the bit to enable to detect slower movements between frames. Default Value: true.
en | Enables faster detection |
sfTkError_t sfDevXM125Presence::setInterDetectionThreshold | ( | uint32_t | thresh | ) |
This function sets the threshold for detecting slower movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1000.
thresh | threshold for faster movements |
sfTkError_t sfDevXM125Presence::setInterFrameDeviationTime | ( | uint32_t | time | ) |
This function sets the time constant of the low pass filter for the inter-frame deviation between fast and slow. Note: This value is a factor 1000 larger than the RSS value Default Value: 500 ms.
time | time in ms |
sfTkError_t sfDevXM125Presence::setInterFrameFastCutoff | ( | uint32_t | cut | ) |
This function sets the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 6000 mHz.
cut | cutoff frequency in mHz |
sfTkError_t sfDevXM125Presence::setInterFramePresenceTimeout | ( | uint32_t | time | ) |
Sets the number of seconds the inter-frame presence score needs to decrease before exponential scaling starts for faster decline. Should be between 0 and 30 where 0 means no timeout. Default Value: 3 seconds.
time | Number of seconds |
sfTkError_t sfDevXM125Presence::setInterFrameSlowCutoff | ( | uint32_t | cut | ) |
This function sets the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean. Note: This value is a factor 1000 larger than the RSS value Default Value: 200 mHz.
cut | cutoff frequency in mHz |
sfTkError_t sfDevXM125Presence::setInterOutputTimeConst | ( | uint32_t | time | ) |
This function sets the time constant for the output in the inter-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 2000ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::setInterPhaseBoostEnabled | ( | bool | en | ) |
This function sets the enable to increase detection of slow motions by utilizing the phase information in the Sparse IQ data.
en | Enables increased detection Default Value: false |
sfTkError_t sfDevXM125Presence::setIntraDetectionThreshold | ( | uint32_t | thresh | ) |
This function sets the threshold for detecting faster movements inside frames. Note: This value is a factor 1000 larger than the RSS value Default Value: 1300.
thresh | threshold for faster movements |
sfTkError_t sfDevXM125Presence::setIntraFrameTimeConst | ( | uint32_t | time | ) |
This functions sets time constant for the depthwise filtering in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 150ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::setIntraOutputTimeConst | ( | uint32_t | time | ) |
This function sets the time constant for the output in the intra-frame part Note: This value is a factor 1000 larger than the RSS value Default Value: 300ms.
time | time const in ms |
sfTkError_t sfDevXM125Presence::setManualProfile | ( | uint32_t | prof | ) |
This function sets the profile to use. The profile will only be used if profile auto selection was disabled.
prof | Profile to use (enum) |
sfTkError_t sfDevXM125Presence::setManualStepLength | ( | uint32_t | length | ) |
THis function returns the number of steps between each data point. NOTE: The manual step length will only be used if step length auto selection was disabled Default Value: 72.
length | number of steps |
sfTkError_t sfDevXM125Presence::setResetFilters | ( | bool | reset | ) |
This function sets if the device is enabled/disabled for the reset of the presence filters during start/restart . Default Value: true.
reset | enabled/disabled |
sfTkError_t sfDevXM125Presence::setStart | ( | uint32_t | start | ) |
This function sets the start of measured interval in mm. Note: This value is a factor 1000 larger than the RSS value Default Value: 300mm.
start | measured start interval in mm |
sfTkError_t sfDevXM125Presence::setSweepsPerFrame | ( | uint32_t | sweeps | ) |
This function sets the number of sweeps that will be captured in each frame (measurement). Default Value: 16 seconds.
sweeps | Number of sweeps |
sfTkError_t sfDevXM125Presence::start | ( | ) |
This function starts the device by writing the defined start value to the presence command register.
sfTkError_t sfDevXM125Presence::stop | ( | ) |
This function stops the device by writing the defined stop value to the presence command register.
|
protectedinherited |