-
Notifications
You must be signed in to change notification settings - Fork 30
/
rpiInfo.h
32 lines (26 loc) · 1.07 KB
/
rpiInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __RPIINFO_H
#define __RPIINFO_H
#include <stdint.h>
/**********Select display temperature type**************/
#define CELSIUS 0
#define FAHRENHEIT 1
#define TEMPERATURE_TYPE CELSIUS
/**********Select display temperature type**************/
/**********Select display network IP type**************/
#define ETH0_ADDRESS 0
#define WLAN0_ADDRESS 1
#define IPADDRESS_TYPE WLAN0_ADDRESS
/**********Select display network IP type**************/
/************************Turn off the IP display. Can customize the display****************/
#define IP_DISPLAY_OPEN 0
#define IP_DISPLAY_CLOSE 1
#define IP_SWITCH IP_DISPLAY_OPEN
#define CUSTOM_DISPLAY "UCTRONICS"
/************************Turn off the IP display. Can customize the display****************/
char* get_ip_address(void);
void get_sd_memory(uint32_t *MemSize, uint32_t *freesize);
void get_cpu_memory(float *Totalram, float *freeram);
uint8_t get_temperature(void);
uint8_t get_cpu_message(void);
uint8_t get_hard_disk_memory(uint16_t *diskMemSize, uint16_t *useMemSize);
#endif /*__RPIINFO_H*/