Multitech xDot Utils
MultitechDot.h@0:a5748bc6e3e1, 2017-05-15 (annotated)
- Committer:
- lucian@1.0.0.127.in-addr.arpa
- Date:
- Mon May 15 00:59:32 2017 +0300
- Revision:
- 0:a5748bc6e3e1
- Child:
- 1:73cea350269e
Add multitech dot utils
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 1 | #ifndef MBED_MULTITECHDOT_H |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 2 | #define MBED_MULTITECHDOT_H |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 3 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 4 | #include "mbed.h" |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 5 | #include "mDot.h" |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 6 | #include "MTSLog.h" |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 7 | #include "MTSText.h" |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 8 | #include "xdot_low_power.h" |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 9 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 10 | class MultitechDot : public mDot { |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 11 | public: |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 12 | void config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 13 | uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 14 | uint8_t frequency_sub_band, bool public_network, uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 15 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 16 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 17 | void display_config(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 18 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 19 | void update_ota_config_name_phrase( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 20 | std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, bool public_network, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 21 | uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 22 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 23 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 24 | void update_ota_config_id_key( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 25 | uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 26 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 27 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 28 | void update_manual_config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 29 | uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 30 | uint8_t frequency_sub_band, bool public_network, uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 31 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 32 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 33 | void update_peer_to_peer_config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 34 | uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint32_t tx_frequency, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 35 | uint8_t tx_datarate, uint8_t tx_power |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 36 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 37 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 38 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 39 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 40 | void join_network(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 41 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 42 | void deep_sleep(uint32_t min_delay_s); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 43 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 44 | void sleep_wake_rtc_only(bool deepsleep); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 45 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 46 | void sleep_wake_interrupt_only(bool deepsleep); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 47 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 48 | void sleep_wake_rtc_or_interrupt(uint32_t delay_s, bool deepsleep); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 49 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 50 | void sleep_save_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 51 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 52 | void sleep_configure_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 53 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 54 | void sleep_restore_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 55 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 56 | void send_data(std::vector<uint8_t> data); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 57 | }; |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 58 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 59 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 60 | #endif //MBED_MULTITECHDOT_H |