Multitech xDot Utils
MultitechDot.h@1:73cea350269e, 2017-07-20 (annotated)
- Committer:
- lucian@1.0.0.127.in-addr.arpa
- Date:
- Thu Jul 20 16:43:35 2017 +0300
- Revision:
- 1:73cea350269e
- Parent:
- 0:a5748bc6e3e1
- Child:
- 2:8d1c64670642
IEM-249 Update libxDot and mbed-os and fix battery level resetting HSI
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 | 1:73cea350269e | 12 | |
lucian@1.0.0.127.in-addr.arpa | 1:73cea350269e | 13 | static MultitechDot* getInstance(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 14 | void config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 15 | uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 16 | uint8_t frequency_sub_band, bool public_network, uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 17 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 18 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 19 | void display_config(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 20 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 21 | void update_ota_config_name_phrase( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 22 | 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 | 23 | uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 24 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 25 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 26 | void update_ota_config_id_key( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 27 | 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 | 28 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 29 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 30 | void update_manual_config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 31 | uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 32 | uint8_t frequency_sub_band, bool public_network, uint8_t ack |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 33 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 34 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 35 | void update_peer_to_peer_config( |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 36 | 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 | 37 | uint8_t tx_datarate, uint8_t tx_power |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 38 | ); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 39 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 40 | 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 | 41 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 42 | void join_network(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 43 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 44 | void deep_sleep(uint32_t min_delay_s); |
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_rtc_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_interrupt_only(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_wake_rtc_or_interrupt(uint32_t delay_s, bool deepsleep); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 51 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 52 | void sleep_save_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 53 | |
lucian@1.0.0.127.in-addr.arpa | 1:73cea350269e | 54 | void sleep_reset_hsi(); |
lucian@1.0.0.127.in-addr.arpa | 1:73cea350269e | 55 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 56 | void sleep_configure_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 57 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 58 | void sleep_restore_io(); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 59 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 60 | void send_data(std::vector<uint8_t> data); |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 61 | }; |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 62 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 63 | |
lucian@1.0.0.127.in-addr.arpa | 0:a5748bc6e3e1 | 64 | #endif //MBED_MULTITECHDOT_H |