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@3:ae1f53883bc0, 2019-04-02 (annotated)
- Committer:
- JongYongPark
- Date:
- Tue Apr 02 07:24:39 2019 +0000
- Revision:
- 3:ae1f53883bc0
- Parent:
- 0:488aa8153e15
- Child:
- 5:5fe30df87772
initial working version with mbed2 lib ( not mbed os5 )
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JongYongPark | 0:488aa8153e15 | 1 | #ifndef __DRIVER_LIFI_RX_H__ |
JongYongPark | 0:488aa8153e15 | 2 | #define __DRIVER_LIFI_RX_H__ |
JongYongPark | 0:488aa8153e15 | 3 | |
JongYongPark | 0:488aa8153e15 | 4 | #include "app.h" |
JongYongPark | 0:488aa8153e15 | 5 | #include "lifiTranceiver.h" |
JongYongPark | 0:488aa8153e15 | 6 | |
JongYongPark | 0:488aa8153e15 | 7 | extern DigitalIn lifi_TxRx_ModePin; |
JongYongPark | 0:488aa8153e15 | 8 | |
JongYongPark | 0:488aa8153e15 | 9 | #if (USE_LOCAL_TICKER==0) |
JongYongPark | 0:488aa8153e15 | 10 | extern Ticker lifi_rx_timer; |
JongYongPark | 0:488aa8153e15 | 11 | #endif |
JongYongPark | 3:ae1f53883bc0 | 12 | |
JongYongPark | 3:ae1f53883bc0 | 13 | #if USE_MBED_OS5 |
JongYongPark | 0:488aa8153e15 | 14 | extern EventQueue lifi_tx_check_queue; |
JongYongPark | 3:ae1f53883bc0 | 15 | #endif |
JongYongPark | 0:488aa8153e15 | 16 | |
JongYongPark | 0:488aa8153e15 | 17 | extern AnalogIn adc_1; |
JongYongPark | 0:488aa8153e15 | 18 | extern AnalogIn adc_2; |
JongYongPark | 0:488aa8153e15 | 19 | extern AnalogIn adc_3; |
JongYongPark | 0:488aa8153e15 | 20 | extern AnalogIn adc_4; |
JongYongPark | 0:488aa8153e15 | 21 | |
JongYongPark | 0:488aa8153e15 | 22 | extern int LifiRx_AdcRead(int num); // 0 (0v) ~ 1000 (3.3v) |
JongYongPark | 0:488aa8153e15 | 23 | extern void LifiRx_Run(); |
JongYongPark | 0:488aa8153e15 | 24 | extern void LifiRx_RunWithEventQueue(); |
JongYongPark | 0:488aa8153e15 | 25 | extern int Lifi_IsRxMode(); |
JongYongPark | 0:488aa8153e15 | 26 | extern void LifiRx_PdTunning(); |
JongYongPark | 0:488aa8153e15 | 27 | extern double LifiRx_GetLux_Temt6000(double vol); |
JongYongPark | 0:488aa8153e15 | 28 | extern float LifiRx_GetLuxFromPdVoltage(float volt_mili); |
JongYongPark | 0:488aa8153e15 | 29 | #endif |
JongYongPark | 0:488aa8153e15 | 30 |