ArduSat API
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
SAT_Spectro.h
Go to the documentation of this file.
1 
21 #ifndef SPECTRO_H
22 #define SPECTRO_H
23 
24 #include <inttypes.h>
25 #include <stdlib.h>
26 
27 #include <Arduino.h>
28 #include <nanosat_message.h>
29 #include <OnboardCommLayer.h>
30 
31 #define SEPCTRO_SAMPLE_SIZE 500
32 
34 {
35  private:
36  uint8_t _local_address; //local address of this node
37  OnboardCommLayer* commLayer;
38  char m[3];
39 
40  public:
46  SAT_Spectro(uint8_t id);
47 
51  void set_exposure(uint8_t setting);
52 
54  void take_sample(void);
55 
63  void onReceiveChunk(void (*) (size_t, boolean), byte*, size_t);
64 };
65 
66 #endif /* SPECTRO_H */