Library to communicate with LDC1101
Dependents: Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3
Fork of LDC1000 by
Revision 27:05dd145c7997, committed 2016-04-12
- Comitter:
- bobgiesberts
- Date:
- Tue Apr 12 14:38:14 2016 +0000
- Parent:
- 26:1ef9172cd355
- Commit message:
- Good working version; Cleaned up some code
Changed in this revision
LDC1101.cpp | Show annotated file Show diff for this revision Revisions of this file |
LDC1101.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/LDC1101.cpp Wed Mar 30 12:00:10 2016 +0000 +++ b/LDC1101.cpp Tue Apr 12 14:38:14 2016 +0000 @@ -12,7 +12,7 @@ #include "LDC1101.h" -LDC1101::LDC1101(PinName mosi, PinName miso, PinName sck, PinName cs, float capacitor, float f_CLKIN, PinName clock_out) : _spiport(mosi,miso,sck, NC), _cs_pin(cs) //, _clock(clock_out,1) +LDC1101::LDC1101(PinName mosi, PinName miso, PinName sck, PinName cs, float capacitor, float f_CLKIN) : _spiport(mosi,miso,sck, NC), _cs_pin(cs) { // settings _cap = capacitor;
--- a/LDC1101.h Wed Mar 30 12:00:10 2016 +0000 +++ b/LDC1101.h Tue Apr 12 14:38:14 2016 +0000 @@ -63,7 +63,7 @@ /** * @brief Create a new Class to interface to an LDC1101 **/ - LDC1101(PinName mosi, PinName miso, PinName sck, PinName cs, float capacitor, float f_CLKIN, PinName clock_out=NC); + LDC1101(PinName mosi, PinName miso, PinName sck, PinName cs, float capacitor, float f_CLKIN); ~LDC1101(); /** @@ -267,11 +267,9 @@ uint32_t _L_data; // The raw measured data for inductance uint16_t _Rcount; // The reference count - SPI _spiport; DigitalOut _cs_pin; - - //FastPWM _clock; + }; #endif \ No newline at end of file