DOT_Example_16_10_2018
Dependencies: libmDot-mbed5 ISL29011
examples/inc/dot_util.h@0:6a6c127cf398, 2018-10-16 (annotated)
- Committer:
- nguyenhoang9x5555
- Date:
- Tue Oct 16 08:05:27 2018 +0000
- Revision:
- 0:6a6c127cf398
DOT_EXample_16_10_2018
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nguyenhoang9x5555 | 0:6a6c127cf398 | 1 | #ifndef __DOT_UTIL_H__ |
nguyenhoang9x5555 | 0:6a6c127cf398 | 2 | #define __DOT_UTIL_H__ |
nguyenhoang9x5555 | 0:6a6c127cf398 | 3 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 4 | #include "mbed.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 5 | #include "mDot.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 6 | #include "ChannelPlans.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 7 | #include "MTSLog.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 8 | #include "MTSText.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 9 | #include "ISL29011.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 10 | #include "example_config.h" |
nguyenhoang9x5555 | 0:6a6c127cf398 | 11 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 12 | extern mDot* dot; |
nguyenhoang9x5555 | 0:6a6c127cf398 | 13 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 14 | void display_config(); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 15 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 16 | 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); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 17 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 18 | 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); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 19 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 20 | 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); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 21 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 22 | 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); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 23 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 24 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 25 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 26 | void join_network(); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 27 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 28 | void sleep_wake_rtc_only(bool deepsleep); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 29 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 30 | void sleep_wake_interrupt_only(bool deepsleep); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 31 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 32 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 33 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 34 | void sleep_save_io(); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 35 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 36 | void sleep_configure_io(); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 37 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 38 | void sleep_restore_io(); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 39 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 40 | void send_data(std::vector<uint8_t> data); |
nguyenhoang9x5555 | 0:6a6c127cf398 | 41 | |
nguyenhoang9x5555 | 0:6a6c127cf398 | 42 | #endif |