Package com.diozero.devices.sandpit
Class Max30102
- java.lang.Object
-
- com.diozero.devices.sandpit.Max30102
-
- All Implemented Interfaces:
DeviceInterface
,Closeable
,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
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
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 interfaceCloseable
- Specified by:
close
in interfaceDeviceInterface
-
-