RTEMS CPU Kit with SuperCore  4.11.3
assoc.h
Go to the documentation of this file.
1 
11 #ifndef _RTEMS_RTEMS_ASSOC_H
12 #define _RTEMS_RTEMS_ASSOC_H
13 
19 #include <stdint.h> /* uint32_t */
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef struct {
26  const char *name;
27  uint32_t local_value;
28  uint32_t remote_value;
30 
31 /*
32  * Flag/marker for optional default value in each table
33  */
34 
35 #define RTEMS_ASSOC_DEFAULT_NAME "(default)"
36 
41  const rtems_assoc_t *,
42  const char *
43 );
44 
49  const rtems_assoc_t *,
50  uint32_t
51 );
52 
53 uint32_t rtems_assoc_remote_by_local(
54  const rtems_assoc_t *,
55  uint32_t
56 );
57 
62  const rtems_assoc_t *,
63  uint32_t
64 );
65 
70  const rtems_assoc_t *,
71  const char *
72 );
73 
78  const rtems_assoc_t *,
79  const char *
80 );
81 
85 const char *rtems_assoc_name_by_local(
86  const rtems_assoc_t *,
87  uint32_t
88 );
89 
93 const char *rtems_assoc_name_by_remote(
94  const rtems_assoc_t *,
95  uint32_t
96 );
97 
102  const rtems_assoc_t *,
103  uint32_t
104 );
105 
110  const rtems_assoc_t *,
111  uint32_t ,
112  char *
113 );
114 
119  const rtems_assoc_t *,
120  uint32_t ,
121  char *
122 );
123 
124 uint32_t rtems_assoc_local_by_remote_bitfield(
125  const rtems_assoc_t *,
126  uint32_t
127 );
128 
133  const rtems_assoc_t *ap,
134  uint32_t local_value
135 );
136 
137 #if defined(INSIDE_ASSOC)
138 
139 #define rtems_assoc_is_default(_ap) \
140  ((_ap)->name && !strcmp((_ap)->name, RTEMS_ASSOC_DEFAULT_NAME))
141 
148 const char *rtems_assoc_name_bad(
149  uint32_t bad_value
150 );
151 #endif
152 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #endif /* ! _RTEMS_RTEMS_ASSOC_H */
Definition: assoc.h:25
uint32_t rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, uint32_t)
RTEMS Assoc Routines.
Definition: assocremotebylocalbitfield.c:29
const rtems_assoc_t * rtems_assoc_ptr_by_remote(const rtems_assoc_t *, uint32_t)
RTEMS Associate Pointer by Remote.
Definition: assocptrbyremote.c:19
char * rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, uint32_t, char *)
RTEMS Associate Name by Remote Bitfield.
Definition: assocnamebyremotebitfield.c:20
char * rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, uint32_t, char *)
RTEMS Associate Name by Local Bitfield.
Definition: assocnamebylocalbitfield.c:19
uint32_t rtems_assoc_local_by_name(const rtems_assoc_t *, const char *)
RTEMS Associate Local by Name.
Definition: assoclocalbyname.c:28
uint32_t rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *)
RTEMS Associate Remote by Name.
Definition: assocremotebyname.c:19
uint32_t rtems_assoc_local_by_remote(const rtems_assoc_t *, uint32_t)
RTEMS Associate Local by Remote.
Definition: assoclocalbyremote.c:19
const char * rtems_assoc_name_by_local(const rtems_assoc_t *, uint32_t)
RTEMS Associate Name by Local.
Definition: assocnamebylocal.c:19
const char * rtems_assoc_name_by_remote(const rtems_assoc_t *, uint32_t)
RTEMS Associate Name by Remote.
Definition: assocnamebyremote.c:20
const rtems_assoc_t * rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *)
RTEMS Associate Pointer by Name.
Definition: assocptrbyname.c:20
const rtems_assoc_t * rtems_assoc_ptr_by_local(const rtems_assoc_t *ap, uint32_t local_value)
RTEMS Associate Pointer by Local.
Definition: assocptrbylocal.c:19