Driver for Amphenol SM_PWM_01C infrared dust sensor.  
More...
Driver for Amphenol SM_PWM_01C infrared dust sensor. 
* About
This driver provides an interface for the Amphenol SM-PWM-Sensor. The Datasheet can be found here. and the more complete application note here
The device can measure small particles (1~ 2μm) and large particle (3 ~10μm), so similar to PM2.5 and PM10. The dust sensor cannot count particles only measure estimated concentrations.
It is recommended to compute values over a 30s moving average. By default a moving average is used since the module MODULE_SM_PWM_01C_MA is activated by default. To save memory an exponential average can be used by disabling this module. 
◆ sm_pwm_01c_init()
Initialize the given SM_PWM_01C device. 
- Parameters
- 
  
    | [out] | dev | Initialized device descriptor of SM_PWM_01C device |  | [in] | params | The parameters for the SM_PWM_01C device |  
 
- Return values
- 
  
    | 0 | on success |  | -EIO | GPIO error |  
 
 
 
◆ sm_pwm_01c_read_data()
Reads particle concentration values. 
- Parameters
- 
  
    | [in] | dev | Device descriptor of SM_PWM_01C device |  | [out] | data | Pre-allocated memory to hold measured concentrations |  
 
 
 
◆ sm_pwm_01c_start()
Start continuous measurement of Large and Small particle concentrations. 
- Parameters
- 
  
    | [in] | dev | Device descriptor of SM_PWM_01C device |  
 
 
 
◆ sm_pwm_01c_stop()
Stops continuous measurement of Large and Small particle concentration. 
- Parameters
- 
  
    | [in] | dev | Device descriptor of SM_PWM_01C device |