Multitech xDot Utils

dot_defs.h

Committer:
lucian@192-168-0-103.rdsnet.ro
Date:
2018-02-19
Revision:
2:8d1c64670642
Child:
3:7fa5603c10dc

File content as of revision 2:8d1c64670642:

#ifndef MBED_MULTITECHDOT_DOT_DEFS_H
#define MBED_MULTITECHDOT_DOT_DEFS_H

struct dot_config {
    /**
     * DevAddr, 4 bytes.
     */
    uint8_t network_address[4];

    /**
     * NwkSKey, 16 bytes
     */
    uint8_t network_session_key[16];

    /**
     *  AppSKey, 16 bytes
     */
    uint8_t data_session_key[16];

    uint8_t frequency_sub_band;

    bool public_network;

    /**
     * Acknowledgements: 0 to disable acks, otherwise 1 - 8
     */
    uint8_t ack;

    /**
     * Sleep time in seconds
     */
    uint32_t sleep_time_s;

    /**
     * Should sleep deeply
     */
    bool should_deep_sleep;

    /**
     * Log level mts::MTSLog
     */
    uint8_t log_level;
};

#endif