Here it is ...
Dependencies: libxDot-mbed5 TSL2561
Fork of Dot-Examples by
examples/inc/dot_util.h@40:314e6b1c289f, 2018-07-30 (annotated)
- Committer:
- David Gutsch dgutsch@umail.iu.edu
- Date:
- Mon Jul 30 08:51:08 2018 -0400
- Revision:
- 40:314e6b1c289f
- Parent:
- 39:0d4362063352
refactored for boy scout demo. Gain is being set to high (16x) too.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfiore | 0:a151a6350d7f | 1 | #ifndef __DOT_UTIL_H__ |
mfiore | 0:a151a6350d7f | 2 | #define __DOT_UTIL_H__ |
mfiore | 0:a151a6350d7f | 3 | |
mfiore | 0:a151a6350d7f | 4 | #include "mbed.h" |
mfiore | 0:a151a6350d7f | 5 | #include "mDot.h" |
Mike Fiore |
21:09d05faf0e13 | 6 | #include "ChannelPlans.h" |
mfiore | 0:a151a6350d7f | 7 | #include "MTSLog.h" |
mfiore | 0:a151a6350d7f | 8 | #include "MTSText.h" |
mfiore | 0:a151a6350d7f | 9 | #include "example_config.h" |
David Gutsch dgutsch@umail.iu.edu | 33:79e4c812d91d | 10 | #include <stdlib.h> |
David Gutsch dgutsch@umail.iu.edu | 39:0d4362063352 | 11 | #include "TSL2561.h" |
mfiore | 0:a151a6350d7f | 12 | |
mfiore | 0:a151a6350d7f | 13 | extern mDot* dot; |
mfiore | 0:a151a6350d7f | 14 | |
mfiore | 0:a151a6350d7f | 15 | void display_config(); |
mfiore | 0:a151a6350d7f | 16 | |
Evan Hosseini |
25:56f7775c702f | 17 | void update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack); |
Mike Fiore |
5:97ed5f2f099e | 18 | |
Mike Fiore |
5:97ed5f2f099e | 19 | void update_ota_config_id_key(uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack); |
mfiore | 0:a151a6350d7f | 20 | |
Mike Fiore |
8:e667f4a507b1 | 21 | void update_manual_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack); |
Mike Fiore |
8:e667f4a507b1 | 22 | |
Mike Fiore |
12:ec9768677cea | 23 | void update_peer_to_peer_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint32_t tx_frequency, uint8_t tx_datarate, uint8_t tx_power); |
Mike Fiore |
12:ec9768677cea | 24 | |
Mike Fiore |
15:364df461110f | 25 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
Mike Fiore |
15:364df461110f | 26 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 27 | void join_network(Serial*); |
mfiore | 0:a151a6350d7f | 28 | |
David Gutsch dgutsch@umail.iu.edu | 37:4818522075f8 | 29 | void sleep_wake_rtc_only(bool deepsleep, int, Serial*); |
mfiore | 0:a151a6350d7f | 30 | |
mfiore | 0:a151a6350d7f | 31 | void sleep_wake_interrupt_only(bool deepsleep); |
mfiore | 0:a151a6350d7f | 32 | |
mfiore | 0:a151a6350d7f | 33 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
mfiore | 0:a151a6350d7f | 34 | |
Mike Fiore |
7:724cb82a113e | 35 | void sleep_save_io(); |
Mike Fiore |
7:724cb82a113e | 36 | |
Mike Fiore |
7:724cb82a113e | 37 | void sleep_configure_io(); |
Mike Fiore |
7:724cb82a113e | 38 | |
Mike Fiore |
7:724cb82a113e | 39 | void sleep_restore_io(); |
Mike Fiore |
7:724cb82a113e | 40 | |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 41 | int send_data(std::vector<uint8_t> data, Serial *pc); |
David Gutsch dgutsch@umail.iu.edu | 33:79e4c812d91d | 42 | |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 43 | /** |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 44 | a function which gets light data(manufactures data as of now |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 45 | */ |
David Gutsch dgutsch@umail.iu.edu | 39:0d4362063352 | 46 | uint8_t get_light_data(TSL2561*, Serial*); |
mfiore | 0:a151a6350d7f | 47 | |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 48 | void ascii_converter(char*, uint8_t, std::vector<uint8_t>*, Serial*); |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 49 | |
mfiore | 0:a151a6350d7f | 50 | #endif |