RGBtoHDMI/src/info.h

50 wiersze
1.0 KiB
C
Czysty Zwykły widok Historia

// info.h
#ifndef INFO_H
#define INFO_H
#include "rpi-mailbox-interface.h"
typedef struct {
int rate;
int min_rate;
int max_rate;
int state;
} clock_info_t;
/* Cached on boot, so this is safe to call at any time */
extern void init_info();
/* Cached on boot, so this is safe to call at any time */
extern int get_speed();
/* Cached on boot, so this is safe to call at any time */
extern char *get_info_string();
extern int get_clock_rate(int clk_id);
int get_revision();
extern float get_temp();
#define COMPONENT_CORE 1
#define COMPONENT_SDRAM_C 2
#define COMPONENT_SDRAM_P 3
#define COMPONENT_SDRAM_I 4
float get_voltage(int component_id);
extern clock_info_t *get_clock_rates(int clk_id);
extern void dump_useful_info();
/* Cached on boot, so this is safe to call at any time */
extern char *get_cmdline();
/* Cached on boot, so this is safe to call at any time */
extern char *get_cmdline_prop(char *prop);
extern char *get_prop(char *cmdline, char *prop);
extern char *get_prop_no_space(char *cmdline, char *prop);
#endif