ppc.c File Reference
Go to the source code of this file.
Typedefs |
| typedef struct ppc_header_s | ppc_header_t |
Functions |
| int | ppc_register (ppc_t *ppc, unsigned char cmd, ppc_cb_t cb, void *arg) |
| ssize_t | ppc_write (ppc_t *ppc, int fd, unsigned char cmd, char *data, size_t size) |
| ssize_t | ppc_read (ppc_t *ppc, int fd, unsigned char *pcmd, char *data, size_t size) |
| int | ppc_dispatch (ppc_t *ppc, int fd, unsigned char cmd, char *data, size_t size) |
| int | ppc_free (ppc_t *ppc) |
| int | ppc_create (ppc_t **pppc) |
Typedef Documentation
Definition at line 21 of file ppc.c.
Function Documentation
| int ppc_create |
( |
ppc_t ** |
pppc |
) |
|
| int ppc_dispatch |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char |
cmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
| int ppc_free |
( |
ppc_t * |
ppc |
) |
|
| ssize_t ppc_read |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char * |
pcmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
Definition at line 97 of file ppc.c.
| int ppc_register |
( |
ppc_t * |
ppc, |
|
|
unsigned char |
cmd, |
|
|
ppc_cb_t |
cb, |
|
|
void * |
arg | |
|
) |
| | |
Definition at line 29 of file ppc.c.
| ssize_t ppc_write |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char |
cmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
Definition at line 72 of file ppc.c.