Class similar to AnalogIn that uses burst mode to run continious background conversions so when the input is read, the last value can immediatly be returned.
Fork of FastAnalogIn by
Obsolete!
Has been already merged with Erik's original repository => take the original!
- Added support for LPC4088.
- Fixed linker error (missing definition of static member "channel_usage")
Diff: FastAnalogIn_KLXX.cpp
- Revision:
- 3:a9b753c25073
- Parent:
- 2:9b61d0792927
- Child:
- 5:55274430c8df
--- a/FastAnalogIn_KLXX.cpp Sat Mar 08 15:44:57 2014 +0000 +++ b/FastAnalogIn_KLXX.cpp Sat Mar 08 16:01:36 2014 +0000 @@ -6,14 +6,6 @@ #define MAX_FADC 6000000 #define CHANNELS_A_SHIFT 5 -/*typedef struct analogin_s fanalogin_t; - -void fanalogin_init (fanalogin_t *obj, PinName pin); -float fanalogin_read (fanalogin_t *obj); -uint16_t fanalogin_read_u16(fanalogin_t *obj); - -fanalogin_t _adc;*/ - FastAnalogIn::FastAnalogIn(PinName pin, bool enabled) { ADCnumber = (ADCName)pinmap_peripheral(pin, PinMap_ADC);