Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack
inc/dot_util.h@43:97fd5b4de956, 2021-07-07 (annotated)
- Committer:
- jose_23991
- Date:
- Wed Jul 07 11:34:06 2021 +0000
- Revision:
- 43:97fd5b4de956
Basic xDot Bootlaoder+ABP+FUOTA code to check available memory for user app
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jose_23991 | 43:97fd5b4de956 | 1 | #ifndef __DOT_UTIL_H__ |
jose_23991 | 43:97fd5b4de956 | 2 | #define __DOT_UTIL_H__ |
jose_23991 | 43:97fd5b4de956 | 3 | |
jose_23991 | 43:97fd5b4de956 | 4 | #include "mbed.h" |
jose_23991 | 43:97fd5b4de956 | 5 | #include "mDot.h" |
jose_23991 | 43:97fd5b4de956 | 6 | #include "ChannelPlans.h" |
jose_23991 | 43:97fd5b4de956 | 7 | #include "MTSLog.h" |
jose_23991 | 43:97fd5b4de956 | 8 | #include "MTSText.h" |
jose_23991 | 43:97fd5b4de956 | 9 | |
jose_23991 | 43:97fd5b4de956 | 10 | extern mDot* dot; |
jose_23991 | 43:97fd5b4de956 | 11 | |
jose_23991 | 43:97fd5b4de956 | 12 | lora::ChannelPlan* create_channel_plan(); |
jose_23991 | 43:97fd5b4de956 | 13 | |
jose_23991 | 43:97fd5b4de956 | 14 | void display_config(); |
jose_23991 | 43:97fd5b4de956 | 15 | |
jose_23991 | 43:97fd5b4de956 | 16 | void update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack); |
jose_23991 | 43:97fd5b4de956 | 17 | |
jose_23991 | 43:97fd5b4de956 | 18 | void update_ota_config_id_key(uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, lora::NetworkType public_network, uint8_t ack); |
jose_23991 | 43:97fd5b4de956 | 19 | |
jose_23991 | 43:97fd5b4de956 | 20 | void update_manual_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack); |
jose_23991 | 43:97fd5b4de956 | 21 | |
jose_23991 | 43:97fd5b4de956 | 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); |
jose_23991 | 43:97fd5b4de956 | 23 | |
jose_23991 | 43:97fd5b4de956 | 24 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
jose_23991 | 43:97fd5b4de956 | 25 | |
jose_23991 | 43:97fd5b4de956 | 26 | void join_network(); |
jose_23991 | 43:97fd5b4de956 | 27 | |
jose_23991 | 43:97fd5b4de956 | 28 | void sleep_wake_rtc_only(bool deepsleep); |
jose_23991 | 43:97fd5b4de956 | 29 | |
jose_23991 | 43:97fd5b4de956 | 30 | void sleep_wake_interrupt_only(bool deepsleep); |
jose_23991 | 43:97fd5b4de956 | 31 | |
jose_23991 | 43:97fd5b4de956 | 32 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
jose_23991 | 43:97fd5b4de956 | 33 | |
jose_23991 | 43:97fd5b4de956 | 34 | void sleep_save_io(); |
jose_23991 | 43:97fd5b4de956 | 35 | |
jose_23991 | 43:97fd5b4de956 | 36 | void sleep_configure_io(); |
jose_23991 | 43:97fd5b4de956 | 37 | |
jose_23991 | 43:97fd5b4de956 | 38 | void sleep_restore_io(); |
jose_23991 | 43:97fd5b4de956 | 39 | |
jose_23991 | 43:97fd5b4de956 | 40 | int send_data(std::vector<uint8_t> data); |
jose_23991 | 43:97fd5b4de956 | 41 | |
jose_23991 | 43:97fd5b4de956 | 42 | #endif |