Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: driverLifiRx.h
- Revision:
- 0:488aa8153e15
- Child:
- 3:ae1f53883bc0
- Child:
- 4:3ec60ea204c6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/driverLifiRx.h Wed Mar 20 09:24:35 2019 +0000 @@ -0,0 +1,27 @@ +#ifndef __DRIVER_LIFI_RX_H__ +#define __DRIVER_LIFI_RX_H__ + +#include "app.h" +#include "lifiTranceiver.h" + +extern DigitalIn lifi_TxRx_ModePin; + +#if (USE_LOCAL_TICKER==0) +extern Ticker lifi_rx_timer; +#endif +extern EventQueue lifi_tx_check_queue; + +extern AnalogIn adc_1; +extern AnalogIn adc_2; +extern AnalogIn adc_3; +extern AnalogIn adc_4; + +extern int LifiRx_AdcRead(int num); // 0 (0v) ~ 1000 (3.3v) +extern void LifiRx_Run(); +extern void LifiRx_RunWithEventQueue(); +extern int Lifi_IsRxMode(); +extern void LifiRx_PdTunning(); +extern double LifiRx_GetLux_Temt6000(double vol); +extern float LifiRx_GetLuxFromPdVoltage(float volt_mili); +#endif +