Package com.diozero.devices.sandpit
Class Max30102
java.lang.Object
com.diozero.devices.sandpit.Max30102
- All Implemented Interfaces:
DeviceInterface
,AutoCloseable
public class Max30102 extends Object implements DeviceInterface
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Max30102.FifoRolloverOnFull
static class
Max30102.SampleAveraging
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
close()
Close this deviceint
getDataPresent()
byte
getPartId()
byte
getRevisionId()
void
readFifo()
void
reset()
void
setup(Max30102.SampleAveraging sampleAveraging, Max30102.FifoRolloverOnFull fifoRolloverOnFull, int freeFifoEntriesInterruptThreshold)
-
Constructor Details
-
Max30102
public Max30102() -
Max30102
public Max30102(int controller)
-
-
Method Details
-
reset
public void reset() -
getRevisionId
public byte getRevisionId() -
getPartId
public byte getPartId() -
setup
public void setup(Max30102.SampleAveraging sampleAveraging, Max30102.FifoRolloverOnFull fifoRolloverOnFull, int freeFifoEntriesInterruptThreshold) -
getDataPresent
public int getDataPresent() -
readFifo
public void readFifo() -
close
public void close()Description copied from interface:DeviceInterface
Close this device- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDeviceInterface
-