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.
driverLifiRx.h
- Committer:
- pjr
- Date:
- 2019-04-04
- Revision:
- 5:5fe30df87772
- Parent:
- 4:3ec60ea204c6
- Parent:
- 3:ae1f53883bc0
- Child:
- 21:82b5759f5047
File content as of revision 5:5fe30df87772:
#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 #if USE_MBED_OS5 extern EventQueue lifi_tx_check_queue; #endif 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