MyComponent  Version 1.0.0
Example that demonstrates Software Component Views in the MDK Debugger
 All Data Structures Functions Variables Groups Pages
MyComponent.h
1 /*------------------------------------------------------------------------------
2  * MyComponent - Component ::MDK Example:MyComponent
3  * Copyright (c) 2016 ARM Germany GmbH. All rights reserved.
4  *------------------------------------------------------------------------------
5  * Name: MyComponent.h
6  * Purpose: Example showing the usage of Software Component Views in MDK
7  * Rev.: V1.0.0
8  *----------------------------------------------------------------------------*/
9 
10 
12 struct MyComp_info_t {
13  int version;
14  int channels;
15  int buffersize;
16 };
17 
19 struct MyComp_data_t {
20  char buf[256];
21  int is_free;
22 };
23 
24 
28 extern void MyComp_initialize (void);
29 
30 
35 extern void MyComp_send (char* str);
36 
37 
42 extern void MyComp_receive (char* str);
43 
44 // header file that defines debug events
45 #include "EvrMyComponent.h"
char buf[256]
communication buffer
Definition: MyComponent.h:20
void MyComp_send(char *str)
Send data string.
Definition: MyComponent.c:34
Component information.
Definition: MyComponent.h:12
int version
component version
Definition: MyComponent.h:13
void MyComp_receive(char *str)
Receive data string.
Definition: MyComponent.c:51
Component data.
Definition: MyComponent.h:19
int channels
number of communication channels available
Definition: MyComponent.h:14
int buffersize
size of the communication buffer
Definition: MyComponent.h:15
void MyComp_initialize(void)
Initialize function.
Definition: MyComponent.c:23
int is_free
flag: 0=buffer occupied, 1=buffer free
Definition: MyComponent.h:21