![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
examples/inc/dot_util.h@7:724cb82a113e, 2016-10-07 (annotated)
- Committer:
- Mike Fiore
- Date:
- Fri Oct 07 12:45:23 2016 -0500
- Revision:
- 7:724cb82a113e
- Parent:
- 5:97ed5f2f099e
- Child:
- 8:e667f4a507b1
in sleep mode configure external IOs to achieve lowest possible current consumption
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" |
mfiore | 0:a151a6350d7f | 6 | #include "MTSLog.h" |
mfiore | 0:a151a6350d7f | 7 | #include "MTSText.h" |
mfiore | 0:a151a6350d7f | 8 | #include "ISL29011.h" |
mfiore | 0:a151a6350d7f | 9 | #include "example_config.h" |
mfiore | 0:a151a6350d7f | 10 | |
mfiore | 0:a151a6350d7f | 11 | extern mDot* dot; |
mfiore | 0:a151a6350d7f | 12 | |
mfiore | 0:a151a6350d7f | 13 | void display_config(); |
mfiore | 0:a151a6350d7f | 14 | |
Mike Fiore |
5:97ed5f2f099e | 15 | void update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, bool public_network, uint8_t ack); |
Mike Fiore |
5:97ed5f2f099e | 16 | |
Mike Fiore |
5:97ed5f2f099e | 17 | 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 | 18 | |
mfiore | 0:a151a6350d7f | 19 | void join_network(); |
mfiore | 0:a151a6350d7f | 20 | |
mfiore | 0:a151a6350d7f | 21 | void sleep_wake_rtc_only(bool deepsleep); |
mfiore | 0:a151a6350d7f | 22 | |
mfiore | 0:a151a6350d7f | 23 | void sleep_wake_interrupt_only(bool deepsleep); |
mfiore | 0:a151a6350d7f | 24 | |
mfiore | 0:a151a6350d7f | 25 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
mfiore | 0:a151a6350d7f | 26 | |
Mike Fiore |
7:724cb82a113e | 27 | void sleep_save_io(); |
Mike Fiore |
7:724cb82a113e | 28 | |
Mike Fiore |
7:724cb82a113e | 29 | void sleep_configure_io(); |
Mike Fiore |
7:724cb82a113e | 30 | |
Mike Fiore |
7:724cb82a113e | 31 | void sleep_restore_io(); |
Mike Fiore |
7:724cb82a113e | 32 | |
mfiore | 0:a151a6350d7f | 33 | void send_data(std::vector<uint8_t> data); |
mfiore | 0:a151a6350d7f | 34 | |
mfiore | 0:a151a6350d7f | 35 | #endif |