API Reference
Header files
File test_comp/include/comp1.h
This is a test file for comp1.
To use this driver:
- include this file in your project
- print() is a function that prints "Hello World!"
Structures and Types
Type | Name |
---|---|
struct | comp1 struct comp |
typedef int | comp1_int typedef int for comp |
union | union_comp1 it's a union!!! |
Functions
Type | Name |
---|---|
void | add (comp1 a, comp1 b) print the added result |
void | print (void) print function |
Macros
Type | Name |
---|---|
define | TEST_FOO 111; THIS IS TEST_FOO VARIABLE! |
Structures and Types Documentation
struct comp1
struct comp
Variables:
-
int bar
-
int foo
??? foo?
typedef comp1_int
typedef int for comp
typedef int comp1_int;
union union_comp1
it's a union!!!
Variables:
Functions Documentation
function add
print the added result
void add (
comp1 a,
comp1 b
)
Parameters:
a
aaab
bbb
function print
print function
void print (
void
)
Macros Documentation
define TEST_FOO
THIS IS TEST_FOO VARIABLE!
#define TEST_FOO 111;
File test_comp/include/comp2.h
Structures and Types
Type | Name |
---|---|
enum | DAY |
struct | comp2 struct comp2 |
typedef int | comp2_int typedef int for comp |
Functions
Type | Name |
---|---|
void | add (int a, int b) print the added result |
void | print (void) print function |
Structures and Types Documentation
enum DAY
enum DAY {
MON = 1,
TUE,
WED,
THU,
FRI,
SAT,
SUN
};
struct comp2
struct comp2
Variables:
-
int bar
-
int foo
typedef comp2_int
typedef int for comp
typedef int comp2_int;
Functions Documentation
function add
print the added result
void add (
int a,
int b
)
Parameters:
a
ab
b
function print
print function
void print (
void
)