root / proj / include / nctp.h @ 269
History | View | Annotate | Download (472 Bytes)
1 |
#ifndef NCTP_H_INCLUDED
|
---|---|
2 |
#define NCTP_H_INCLUDED
|
3 |
|
4 |
#include "uart.h" |
5 |
|
6 |
int nctp_get_char_poll (int base_addr, uint8_t *p); |
7 |
int nctp_send_char_poll (int base_addr, uint8_t c); |
8 |
|
9 |
/**
|
10 |
* @brief Send stuff to COM #port.
|
11 |
* @param port Port to send message to
|
12 |
* @param num Number of pairs of address/numbytes to send
|
13 |
*/
|
14 |
int nctp_send(int base_addr, size_t num, uint8_t* ptr[], size_t sz[]); |
15 |
|
16 |
int nctp_get (int base_addr, uint8_t **dest); |
17 |
|
18 |
#endif //NCTP_H_INCLUDED |