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.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: LTC1298/ltc1298.hpp
- Revision:
- 51:c5c40272ecc3
- Parent:
- 10:085ab7328054
- Child:
- 73:f6f378311c8d
--- a/LTC1298/ltc1298.hpp Thu Feb 15 23:08:38 2018 +0000
+++ b/LTC1298/ltc1298.hpp Mon Jun 04 15:20:21 2018 +0000
@@ -2,8 +2,14 @@
#define MBED_LTC1298_H
#include "mbed.h"
-#define CH0OVERSAMPLE 8
-#define CH1OVERSAMPLE 8
+#define CH0OVERSAMPLE 10
+#define CH1OVERSAMPLE 10
+#define CH2OVERSAMPLE 10
+#define CH3OVERSAMPLE 10
+#define CH4OVERSAMPLE 10
+#define CH5OVERSAMPLE 10
+#define CH6OVERSAMPLE 10
+#define CH7OVERSAMPLE 10
class SpiADC{
public:
@@ -15,6 +21,12 @@
int readCh0();
int readCh1();
+ int readCh2();
+ int readCh3();
+ int readCh4();
+ int readCh5();
+ int readCh6();
+ int readCh7();
protected:
SPI _spi;
@@ -24,9 +36,21 @@
int ch0_raw;
int ch1_raw;
+ int ch2_raw;
+ int ch3_raw;
+ int ch4_raw;
+ int ch5_raw;
+ int ch6_raw;
+ int ch7_raw;
int ch0_filt;
int ch1_filt;
+ int ch2_filt;
+ int ch3_filt;
+ int ch4_filt;
+ int ch5_filt;
+ int ch6_filt;
+ int ch7_filt;
};