EE445M RTOS
Taken at the University of Texas Spring 2015
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
notify.h
Go to the documentation of this file.
1
/* -*- mode: c; c-basic-offset: 4; -*- */
2
#ifndef __LIBNOTIFY__
3
#define __LIBNOTIFY__
4
5
#include "
libstd/nexus.h
"
6
10
typedef
enum
{
11
NOTIFY_INT
,
12
NOTIFY_DOUBLE
,
13
NOTIFY_CHAR
,
14
NOTIFY_STRING
,
15
}
NOTIFICATION_TYPE
;
16
22
typedef
union
{
23
int
_int
;
24
double
_double
;
25
char
_char
;
26
char
_string[16];
27
}
notification
;
28
31
typedef
struct
{
32
memory_address_t
base
;
33
memory_address_t
pin
;
34
NOTIFICATION_TYPE
type
;
35
notification
**
data
;
36
}
notification_metadata
;
37
39
#define notification_init_(_name, _type, _value) \
40
notification _name; \
41
_name._##_type = _value
42
45
#define notification_init(_type, _value) \
46
notification_init_(note, _type, _value)
47
48
#endif
notification_metadata::type
NOTIFICATION_TYPE type
Definition:
notify.h:34
notification::_int
int _int
Definition:
notify.h:23
NOTIFICATION_TYPE
NOTIFICATION_TYPE
Definition:
notify.h:10
notification_metadata
Definition:
notify.h:31
NOTIFY_STRING
Definition:
notify.h:14
notification_metadata::pin
memory_address_t pin
Definition:
notify.h:33
notification_metadata::base
memory_address_t base
Definition:
notify.h:32
notification::_double
double _double
Definition:
notify.h:24
NOTIFY_DOUBLE
Definition:
notify.h:12
NOTIFY_INT
Definition:
notify.h:11
notification_metadata::data
notification ** data
Definition:
notify.h:35
memory_address_t
int32_t memory_address_t
Definition:
nexus.h:48
nexus.h
NOTIFY_CHAR
Definition:
notify.h:13
notification::_char
char _char
Definition:
notify.h:25
notification
Definition:
notify.h:22
lib
libnotify
notify.h
Generated on Fri Mar 13 2015 21:18:37 for EE445M RTOS by
1.8.9.1