[riot-notifications] [RIOT-OS/RIOT] drivers/sm_pwm_01c: initial import (#16217)

Francisco notifications at github.com
Wed Apr 7 10:52:15 CEST 2021


@fjmolinas commented on this pull request.



> +    sm_pwm_01c_params_t params;     /**< Device driver parameters */
+    sm_pwm_01c_values_t _values;    /**< Internal data to calculate concentration
+                                         from tsl/tsp low Pulse Output Occupancy */
+    ztimer_t _sampler;              /**< internal sampling timer */
+} sm_pwm_01c_t;
+
+/**
+ * @brief       Initialize the given SM_PWM_01C device
+ *
+ * @param[out]  dev         Initialized device descriptor of SM_PWM_01C device
+ * @param[in]   params      The parameters for the SM_PWM_01C device
+ *
+ * @retval                    0 on success
+ * @retval                   -EIO GPIO error
+ */
+int sm_pwm_01c_init(sm_pwm_01c_t* dev, const sm_pwm_01c_params_t* params);

I thought I had uncrustigied the file.. seems not, did it now.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16217#discussion_r608465192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210407/488edf03/attachment.htm>


More information about the notifications mailing list