Test firmware for the Supermote hardware.

Dependencies:   K30_I2C libxDot-mbed5

Fork of K30_I2C_Program by Hux Connect

HPM/hpm.h

Committer:
bjenkins
Date:
2018-09-14
Revision:
3:2ab969b31f6b
Parent:
2:680fc2690d10

File content as of revision 3:2ab969b31f6b:

#ifndef HPM_h
#define HPM_h

#include "mbed.h"

class HPM
{
    public:
        HPM(Serial* device, Serial* debug);
        bool init(void);
        bool start_measurement(void);
        bool stop_measurement(void);
        bool read_measurement (long int &PM25, long int &PM10);
        bool stop_autosend(void);
        bool start_autosend(void);        
        
    private:    
        void clear_rx_buffer(void);
        
        Serial* _device;
        Serial* _debug;
};

#endif