34

Dependencies:   BSP libNDEF libxDot-mbed5 ST25DV

Committer:
umickelsen
Date:
Sat Sep 30 22:01:56 2017 +0000
Revision:
0:b15aed49e54b
Importacion inicial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
umickelsen 0:b15aed49e54b 1 #ifndef __DOT_UTIL_H__
umickelsen 0:b15aed49e54b 2 #define __DOT_UTIL_H__
umickelsen 0:b15aed49e54b 3
umickelsen 0:b15aed49e54b 4 #include "mbed.h"
umickelsen 0:b15aed49e54b 5 #include "mDot.h"
umickelsen 0:b15aed49e54b 6 #include "ChannelPlans.h"
umickelsen 0:b15aed49e54b 7 #include "MTSLog.h"
umickelsen 0:b15aed49e54b 8 #include "MTSText.h"
umickelsen 0:b15aed49e54b 9 //#include "example_config.h"
umickelsen 0:b15aed49e54b 10
umickelsen 0:b15aed49e54b 11 extern mDot* dot;
umickelsen 0:b15aed49e54b 12
umickelsen 0:b15aed49e54b 13 void display_config();
umickelsen 0:b15aed49e54b 14
umickelsen 0:b15aed49e54b 15 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);
umickelsen 0:b15aed49e54b 16
umickelsen 0:b15aed49e54b 17 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);
umickelsen 0:b15aed49e54b 18
umickelsen 0:b15aed49e54b 19 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);
umickelsen 0:b15aed49e54b 20
umickelsen 0:b15aed49e54b 21 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);
umickelsen 0:b15aed49e54b 22
umickelsen 0:b15aed49e54b 23 void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold);
umickelsen 0:b15aed49e54b 24
umickelsen 0:b15aed49e54b 25 void join_network();
umickelsen 0:b15aed49e54b 26
umickelsen 0:b15aed49e54b 27 void sleep_wake_rtc_only(bool deepsleep, unsigned int delay);
umickelsen 0:b15aed49e54b 28
umickelsen 0:b15aed49e54b 29 void sleep_wake_interrupt_only(bool deepsleep);
umickelsen 0:b15aed49e54b 30
umickelsen 0:b15aed49e54b 31 void sleep_wake_rtc_or_interrupt(bool deepsleep);
umickelsen 0:b15aed49e54b 32
umickelsen 0:b15aed49e54b 33 void sleep_save_io();
umickelsen 0:b15aed49e54b 34
umickelsen 0:b15aed49e54b 35 void sleep_configure_io();
umickelsen 0:b15aed49e54b 36
umickelsen 0:b15aed49e54b 37 void sleep_restore_io();
umickelsen 0:b15aed49e54b 38
umickelsen 0:b15aed49e54b 39 void send_data(std::vector<uint8_t> data);
umickelsen 0:b15aed49e54b 40 int32_t send_string_data(std::string data);
umickelsen 0:b15aed49e54b 41
umickelsen 0:b15aed49e54b 42 #endif