root / proj / include / nctp.h @ 267
History | View | Annotate | Download (460 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 port, size_t num, uint8_t* ptr[], size_t sz[]); |
15 |
|
16 |
int ntcp_get(int port, uint8_t *dest); |
17 |
|
18 |
#endif //NCTP_H_INCLUDED |