Revision 275
implementing transmission with queues
hltp.c | ||
---|---|---|
3 | 3 |
#include "hltp.h" |
4 | 4 |
|
5 | 5 |
#include "nctp.h" |
6 |
|
|
7 |
int hltp_send_string(int base_addr, const char *p){ |
|
8 |
uint8_t* ptr[1]; ptr[0] = (uint8_t*)p; |
|
9 |
size_t sz[1]; sz[0] = strlen(p)+1; |
|
10 |
return nctp_send(base_addr, 1, ptr, sz); |
|
11 |
} |
|
12 |
|
|
13 |
int hltp_get_string(int base_addr, char **p){ |
|
14 |
return nctp_get(base_addr, (uint8_t**)p); |
|
15 |
} |
Also available in: Unified diff