Multitech xDot Utils

dot_defs.h

Committer:
lucian@192-168-0-108.rdsnet.ro
Date:
2018-02-21
Revision:
3:7fa5603c10dc
Parent:
2:8d1c64670642
Child:
4:db99b2a7d062

File content as of revision 3:7fa5603c10dc:

#ifndef MBED_MULTITECHDOT_DOT_DEFS_H
#define MBED_MULTITECHDOT_DOT_DEFS_H

#include "MTSLog.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
     */
    mts::MTSLog::logLevel log_level;

    /**
     * Disable duty cycle only for debugging radio purposes. Let it set on false for production.
     */
    bool disable_duty_cycle;
};

#endif