*
* Call this method before using this module.
*
+ * This function is not thread safe. Do not call it from multiple threads.
+ *
* @return SUCCESS if initialization successful.\n
* FAILURE if module already initialized.
*/
*
* Call rpp_dac_update() to commit setup changes to real hardware.
*
+ * The function is thread safe, unless compiled with -DRPP_THREADSAFE=0
+ *
* @param[in] pin The pin number to setup [1-4].
* @param[in] enabled TRUE to enable pin or FALSE to disable it.
*
*
* Call rpp_dac_update() to flush cached values to real hardware.
*
+ * The function is thread safe, unless compiled with -DRPP_THREADSAFE=0
+ *
* @param[in] pin The pin number to set [1-4].
* @param[in] val The value to be set [0-4095] (DAC is 12bit resolution).
*
*
* Helper function that calculates DAC value given a voltage in millivolts.
*
+ * The function is thread safe, unless compiled with -DRPP_THREADSAFE=0
+ *
* @param[in] pin The pin number to set [1-4].
* @param[in] mv Voltage level in mV to be set on specified pin [0-12000].
*
/**
* Flush cached output values and configuration changes.
*
+ * The function is thread safe, unless compiled with -DRPP_THREADSAFE=0
+ *
* @bug This function should be called only after the FreeRTOS Scheduler has
* started (which implies from a FreeRTOS Task). If called before starting the
* scheduler, like for library initialization, or application DAC