Skip to main content

dfsdm.getsampleratehz()

Returns the imp004m’s effective sample rate

Availability

Device (from impOS™ 38)
Available on the imp004m only

Returns

Float — the dfsdm sample rate in Hertz

Description

This method calculates the effective sample rate of the dfsdm from the filter parameters and the time taken to obtain the most recent sample. If no samples have yet been obtained, the method will return 0, so to obtain a meaningful value from this method, dfsdm must have been both configured, started and at least one sample collected.