Robobo
gpbr.h
Go to the documentation of this file.
1 
44 #ifndef GPBR_H_INCLUDED
45 #define GPBR_H_INCLUDED
46 
47 #include "../chip.h"
48 
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
55 
58 typedef enum gpbr_num_type {
59  GPBR0 = 0,
60  GPBR1,
61  GPBR2,
62  GPBR3,
63  GPBR4,
64  GPBR5,
65  GPBR6,
66  GPBR7
67 } gpbr_num_t;
68 
69 uint32_t gpbr_read(gpbr_num_t ul_reg_num);
70 void gpbr_write(gpbr_num_t ul_reg_num, uint32_t ul_value);
71 
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 
80 #endif /* GPBR_H_INCLUDED */
void gpbr_write(gpbr_num_t ul_reg_num, uint32_t ul_value)
Write a value to the specified backup register.
Definition: gpbr.c:81
enum gpbr_num_type gpbr_num_t
uint32_t gpbr_read(gpbr_num_t ul_reg_num)
Read the specified backup register.
Definition: gpbr.c:70
gpbr_num_type
Definition: gpbr.h:58