Test program for FF1705.
Dependencies: libxDot-dev-mbed5-deprecated ISL29011
Example/inc/dot_util.h@0:d96e7e513c16, 2017-11-07 (annotated)
- Committer:
- jernej_vrscaj
- Date:
- Tue Nov 07 11:18:57 2017 +0000
- Revision:
- 0:d96e7e513c16
Testing program for production purposes (v1.0).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jernej_vrscaj | 0:d96e7e513c16 | 1 | #ifndef __DOT_UTIL_H__ |
jernej_vrscaj | 0:d96e7e513c16 | 2 | #define __DOT_UTIL_H__ |
jernej_vrscaj | 0:d96e7e513c16 | 3 | |
jernej_vrscaj | 0:d96e7e513c16 | 4 | #include "mbed.h" |
jernej_vrscaj | 0:d96e7e513c16 | 5 | #include "mDot.h" |
jernej_vrscaj | 0:d96e7e513c16 | 6 | #include "ChannelPlans.h" |
jernej_vrscaj | 0:d96e7e513c16 | 7 | #include "MTSLog.h" |
jernej_vrscaj | 0:d96e7e513c16 | 8 | #include "MTSText.h" |
jernej_vrscaj | 0:d96e7e513c16 | 9 | #include "ISL29011.h" |
jernej_vrscaj | 0:d96e7e513c16 | 10 | #include "example_config.h" |
jernej_vrscaj | 0:d96e7e513c16 | 11 | |
jernej_vrscaj | 0:d96e7e513c16 | 12 | extern mDot* dot; |
jernej_vrscaj | 0:d96e7e513c16 | 13 | |
jernej_vrscaj | 0:d96e7e513c16 | 14 | void display_config(); |
jernej_vrscaj | 0:d96e7e513c16 | 15 | |
jernej_vrscaj | 0:d96e7e513c16 | 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); |
jernej_vrscaj | 0:d96e7e513c16 | 17 | |
jernej_vrscaj | 0:d96e7e513c16 | 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); |
jernej_vrscaj | 0:d96e7e513c16 | 19 | |
jernej_vrscaj | 0:d96e7e513c16 | 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); |
jernej_vrscaj | 0:d96e7e513c16 | 21 | |
jernej_vrscaj | 0:d96e7e513c16 | 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); |
jernej_vrscaj | 0:d96e7e513c16 | 23 | |
jernej_vrscaj | 0:d96e7e513c16 | 24 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
jernej_vrscaj | 0:d96e7e513c16 | 25 | |
jernej_vrscaj | 0:d96e7e513c16 | 26 | void join_network(); |
jernej_vrscaj | 0:d96e7e513c16 | 27 | |
jernej_vrscaj | 0:d96e7e513c16 | 28 | void sleep_wake_rtc_only(bool deepsleep); |
jernej_vrscaj | 0:d96e7e513c16 | 29 | |
jernej_vrscaj | 0:d96e7e513c16 | 30 | void sleep_wake_interrupt_only(bool deepsleep); |
jernej_vrscaj | 0:d96e7e513c16 | 31 | |
jernej_vrscaj | 0:d96e7e513c16 | 32 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
jernej_vrscaj | 0:d96e7e513c16 | 33 | |
jernej_vrscaj | 0:d96e7e513c16 | 34 | void sleep_save_io(); |
jernej_vrscaj | 0:d96e7e513c16 | 35 | |
jernej_vrscaj | 0:d96e7e513c16 | 36 | void sleep_configure_io(); |
jernej_vrscaj | 0:d96e7e513c16 | 37 | |
jernej_vrscaj | 0:d96e7e513c16 | 38 | void sleep_restore_io(); |
jernej_vrscaj | 0:d96e7e513c16 | 39 | |
jernej_vrscaj | 0:d96e7e513c16 | 40 | void send_data(std::vector<uint8_t> data); |
jernej_vrscaj | 0:d96e7e513c16 | 41 | |
jernej_vrscaj | 0:d96e7e513c16 | 42 | #endif |
jernej_vrscaj | 0:d96e7e513c16 | 43 |