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@4:3ec60ea204c6, 2019-04-04 (annotated)
- Committer:
- pjr
- Date:
- Thu Apr 04 14:36:31 2019 +0900
- Revision:
- 4:3ec60ea204c6
- Parent:
- 0:488aa8153e15
- Child:
- 5:5fe30df87772
commit from local pc
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 |
pjr | 4:3ec60ea204c6 | 12 | #if USE_MBED_OS5 |
JongYongPark | 0:488aa8153e15 | 13 | extern EventQueue lifi_tx_check_queue; |
pjr | 4:3ec60ea204c6 | 14 | #endif |
JongYongPark | 0:488aa8153e15 | 15 | |
JongYongPark | 0:488aa8153e15 | 16 | extern AnalogIn adc_1; |
JongYongPark | 0:488aa8153e15 | 17 | extern AnalogIn adc_2; |
JongYongPark | 0:488aa8153e15 | 18 | extern AnalogIn adc_3; |
JongYongPark | 0:488aa8153e15 | 19 | extern AnalogIn adc_4; |
JongYongPark | 0:488aa8153e15 | 20 | |
JongYongPark | 0:488aa8153e15 | 21 | extern int LifiRx_AdcRead(int num); // 0 (0v) ~ 1000 (3.3v) |
JongYongPark | 0:488aa8153e15 | 22 | extern void LifiRx_Run(); |
JongYongPark | 0:488aa8153e15 | 23 | extern void LifiRx_RunWithEventQueue(); |
JongYongPark | 0:488aa8153e15 | 24 | extern int Lifi_IsRxMode(); |
JongYongPark | 0:488aa8153e15 | 25 | extern void LifiRx_PdTunning(); |
JongYongPark | 0:488aa8153e15 | 26 | extern double LifiRx_GetLux_Temt6000(double vol); |
JongYongPark | 0:488aa8153e15 | 27 | extern float LifiRx_GetLuxFromPdVoltage(float volt_mili); |
JongYongPark | 0:488aa8153e15 | 28 | #endif |
JongYongPark | 0:488aa8153e15 | 29 |