/*
 * Copyright (c) 2019 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/**@file
 *
 * @brief   GPS module for asset tracker
 */

#ifndef GPS_CONTROLLER_H__
#define GPS_CONTROLLER_H__

#include <zephyr.h>

#ifdef __cplusplus
extern "C" {
#endif

int gps_control_init(struct k_work_q *work_q, gps_event_handler_t handler);

void gps_control_on_trigger(void);

void gps_control_stop(uint32_t delay_ms);

void gps_control_start(uint32_t delay_ms);

bool gps_control_is_enabled(void);

bool gps_control_is_active(void);

int gps_control_get_gps_reporting_interval(void);

bool gps_control_set_active(bool active);

#ifdef __cplusplus
}
#endif

#endif /* GPS_CONTROLLER_H__ */
