SingingCat 0
application
|
code to manage sensors by server More...
#include "powersave.h"
#include "networkif.h"
#include "main-header.h"
#include "streams.h"
#include "powerup.h"
#include <platform-header.h>
#include "led.h"
Go to the source code of this file.
Data Structures | |
struct | power_state |
struct | powersavething |
Macros | |
#define | SECS_AFTER_BOOT_BEFORE_POWERSAFE 120 |
#define | SECS_AFTER_LASTCOM_BEFORE_POWERSAFE 3 |
#define | SECS_AFTER_WAKE_BEFORE_POWERSAFE 10 |
Typedefs | |
typedef struct power_state | _power_state |
typedef struct powersavething | _powersavething |
Functions | |
void | calc_power_mode () |
void | init_powersavething (struct powersavething *pst) |
void | mark_last_in_use (struct powersavething *pst) |
void | power_main_loop () |
int | power_set_connectivity (struct power_state *ps, int turnon) |
void | power_set_speed (int speed) |
int | set_mcu_power_mode (int state) |
Variables | |
struct power_state | prev_state |
code to manage sensors by server
this code manages various aspects of powersaving. e.g. wifi/radios on/off or even put mcu to sleep
Definition in file powersave.c.