spi: implement processing

Implement processing with writing to provided buffer or in-place
Fix types.
Add more PortInfo flags
Remove release-id, we now use a callback, which is more practical and
still allows deallocation out of the rt-threads if needed as well as
recycling the buffers into an atomic pool
Add more comments
Allow NULL in set_params to reset params
This commit is contained in:
Wim Taymans 2016-06-02 16:40:20 +02:00
parent b44d2d86b6
commit 03046301bf
5 changed files with 333 additions and 109 deletions

View file

@ -47,6 +47,8 @@ typedef enum {
SPI_RESULT_INVALID_ARGUMENTS = -21,
} SpiResult;
typedef void (*SpiNotify) (void *data);
G_END_DECLS
#endif /* __SPI_RESULT_H__ */