Zainul Charbiwala / Mbed 2 deprecated ECGAFE_copy

Dependencies:   DS1307 MAX17048 MODSERIAL SSD1308_128x64_I2C mbed-rpc mbed

Fork of ECGAFE_copy by Zainul Charbiwala

Embed: (wiki syntax)

« Back to documentation index

ADS1298 Class Reference

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:
mosimbed pin to use for MOSI line of SPI interface.
misombed pin to use for MISO line of SPI interface.
sckmbed pin to use for SCK line of SPI interface.
csnmbed pin to use for not chip select line of SPI interface.
resetmbed pin to use for the reset line.
drdymbed pin to use for the data ready line.
startmbed 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.