mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
Allow the modem to enter soft sleep when we don't talk to the modem using AT commands. This was already the case in suspend, but not during runtime. By only waking the modem from soft sleep when we need to send an AT command, we can save some power.
22 lines
668 B
C
22 lines
668 B
C
/*
|
|
* Copyright (C) 2020 Arnaud Ferraris <arnaud.ferraris@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "manager.h"
|
|
|
|
int gpio_init(struct EG25Manager *state, toml_table_t *config);
|
|
void gpio_destroy(struct EG25Manager *state);
|
|
|
|
int gpio_sequence_poweron(struct EG25Manager *state);
|
|
int gpio_sequence_shutdown(struct EG25Manager *state);
|
|
int gpio_sequence_suspend(struct EG25Manager *state);
|
|
int gpio_sequence_resume(struct EG25Manager *state);
|
|
int gpio_sequence_wake(struct EG25Manager *state);
|
|
int gpio_sequence_sleep(struct EG25Manager *state);
|
|
|
|
gboolean gpio_check_poweroff(struct EG25Manager *manager, gboolean keep_down);
|