![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example of using the mDot UDK with the X-NUCLEO-IKS01A2 board
Dependencies: MTS_X_NUCLEO_IKS01A2 libmDot-mbed5
Fork of mDot-IKS01A1 by
dot_util.h@15:fb9fa3ac530e, 2018-01-30 (annotated)
- Committer:
- pferland
- Date:
- Tue Jan 30 17:05:52 2018 +0000
- Revision:
- 15:fb9fa3ac530e
- Parent:
- 13:e165a137c3af
Corrected default library versions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pferland | 0:9e88a9018fc0 | 1 | #ifndef __DOT_UTIL_H__ |
pferland | 0:9e88a9018fc0 | 2 | #define __DOT_UTIL_H__ |
pferland | 0:9e88a9018fc0 | 3 | |
pferland | 0:9e88a9018fc0 | 4 | #include "mbed.h" |
pferland | 0:9e88a9018fc0 | 5 | #include "mDot.h" |
pferland | 13:e165a137c3af | 6 | #include "ChannelPlans.h" |
pferland | 0:9e88a9018fc0 | 7 | #include "MTSLog.h" |
pferland | 0:9e88a9018fc0 | 8 | #include "MTSText.h" |
pferland | 0:9e88a9018fc0 | 9 | |
pferland | 0:9e88a9018fc0 | 10 | extern mDot* dot; |
pferland | 0:9e88a9018fc0 | 11 | |
pferland | 0:9e88a9018fc0 | 12 | void display_config(); |
pferland | 0:9e88a9018fc0 | 13 | |
pferland | 0:9e88a9018fc0 | 14 | 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); |
pferland | 0:9e88a9018fc0 | 15 | |
pferland | 0:9e88a9018fc0 | 16 | 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); |
pferland | 0:9e88a9018fc0 | 17 | |
pferland | 0:9e88a9018fc0 | 18 | 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); |
pferland | 0:9e88a9018fc0 | 19 | |
pferland | 0:9e88a9018fc0 | 20 | 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); |
pferland | 0:9e88a9018fc0 | 21 | |
pferland | 0:9e88a9018fc0 | 22 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
pferland | 0:9e88a9018fc0 | 23 | |
pferland | 0:9e88a9018fc0 | 24 | void join_network(); |
pferland | 0:9e88a9018fc0 | 25 | |
pferland | 0:9e88a9018fc0 | 26 | void sleep_wake_rtc_only(bool deepsleep); |
pferland | 0:9e88a9018fc0 | 27 | |
pferland | 0:9e88a9018fc0 | 28 | void sleep_wake_interrupt_only(bool deepsleep); |
pferland | 0:9e88a9018fc0 | 29 | |
pferland | 0:9e88a9018fc0 | 30 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
pferland | 0:9e88a9018fc0 | 31 | |
pferland | 0:9e88a9018fc0 | 32 | void sleep_save_io(); |
pferland | 0:9e88a9018fc0 | 33 | |
pferland | 0:9e88a9018fc0 | 34 | void sleep_configure_io(); |
pferland | 0:9e88a9018fc0 | 35 | |
pferland | 0:9e88a9018fc0 | 36 | void sleep_restore_io(); |
pferland | 0:9e88a9018fc0 | 37 | |
pferland | 0:9e88a9018fc0 | 38 | void send_data(std::vector<uint8_t> data); |
pferland | 0:9e88a9018fc0 | 39 | |
pferland | 0:9e88a9018fc0 | 40 | #endif |