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: DS1307 MAX17048 MODSERIAL SSD1308_128x64_I2C mbed-rpc mbed
Fork of ECGAFE_copy by
ADS1298 Class Reference
Class to control an ADS1298 AFE. More...
#include <ADS1298.h>
Public Member Functions | |
| ADS1298 (PinName mosi, PinName miso, PinName sck, PinName csn, PinName reset, PinName drdy, PinName start) | |
| Constructor. | |
| void | initialize (void(*dataready)(void)) |
| High level Init, most settings remain at Power-On reset value. | |
| void | startCapture () |
| Start capturing data. | |
| void | stopCapture () |
| Stop capturing data. | |
| void | readData (uint8_t *buf) |
| Read data from the ADS1298. | |
| int | updateLeadOff (uint8_t *buf) |
| Update the lead off status. | |
Detailed Description
Class to control an ADS1298 AFE.
Example:
Definition at line 160 of file ADS1298.h.
Constructor & Destructor Documentation
| ADS1298 | ( | PinName | mosi, |
| PinName | miso, | ||
| PinName | sck, | ||
| PinName | csn, | ||
| PinName | reset, | ||
| PinName | drdy, | ||
| PinName | start | ||
| ) |
Constructor.
- Parameters:
-
mosi mbed pin to use for MOSI line of SPI interface. miso mbed pin to use for MISO line of SPI interface. sck mbed pin to use for SCK line of SPI interface. csn mbed pin to use for not chip select line of SPI interface. reset mbed pin to use for the reset line. drdy mbed pin to use for the data ready line. start mbed pin to use for the start conversion line.
Definition at line 4 of file ADS1298.cpp.
Member Function Documentation
| void initialize | ( | void(*)(void) | dataready ) |
High level Init, most settings remain at Power-On reset value.
Definition at line 104 of file ADS1298.cpp.
| void readData | ( | uint8_t * | buf ) |
Read data from the ADS1298.
Definition at line 84 of file ADS1298.cpp.
| void startCapture | ( | ) |
Start capturing data.
Definition at line 210 of file ADS1298.cpp.
| void stopCapture | ( | ) |
Stop capturing data.
Definition at line 218 of file ADS1298.cpp.
| int updateLeadOff | ( | uint8_t * | buf ) |
Update the lead off status.
Definition at line 226 of file ADS1298.cpp.
Generated on Thu Jul 14 2022 05:04:19 by
1.7.2
