#include <avr/io.h>
#include <avr/interrupt.h>
#include <zrtos/cast.h>
#include <zrtos/types.h>
#include <zrtos/vfs/module/spi/sync.h>
Go to the source code of this file.
|
zrtos_error_t | zrtos_vfs_module_avr_spi_sync__on_write_callback (zrtos_vfs_module_spi_sync_inode_t *inode_data, zrtos_vfs_module_spi_sync_file_t *file_data, void *buf, size_t len, size_t *l) |
|
zrtos_error_t | zrtos_vfs_module_avr_spi_sync__on_write (zrtos_vfs_file_t *thiz, char *path, void *buf, size_t len, zrtos_vfs_offset_t offset, size_t *out) |
|
| ZRTOS_VFS_PLUGIN__INIT (spi, ZRTOS_VFS_PLUGIN__0_ON_OPEN(zrtos_vfs_module_spi_sync__on_open) ZRTOS_VFS_PLUGIN__1_ON_CLOSE(zrtos_vfs_module_spi_sync__on_close) ZRTOS_VFS_PLUGIN__2_ON_MOUNT(zrtos_vfs_module_spi_sync__on_mount) ZRTOS_VFS_PLUGIN__3_ON_UMOUNT(zrtos_vfs_module_spi_sync__on_umount) ZRTOS_VFS_PLUGIN__4_ON_READ_DEFAULT() ZRTOS_VFS_PLUGIN__5_ON_WRITE(zrtos_vfs_module_avr_spi_sync__on_write) ZRTOS_VFS_PLUGIN__6_ON_CAN_READ_DEFAULT() ZRTOS_VFS_PLUGIN__7_ON_CAN_WRITE_DEFAULT() ZRTOS_VFS_PLUGIN__8_ON_SEEK_DEFAULT() ZRTOS_VFS_PLUGIN__9_ON_IOCTL_DEFAULT()) |
|
◆ zrtos_vfs_module_avr_spi_sync__on_write()
Definition at line 43 of file sync.h.
zrtos_error_t zrtos_vfs_module_spi_sync__on_write_helper(zrtos_vfs_file_t *thiz, char *path, void *buf, size_t len, zrtos_vfs_offset_t offset, size_t *out, zrtos_error_t(*callback)(zrtos_vfs_module_spi_sync_inode_t *inode_data, zrtos_vfs_module_spi_sync_file_t *file_data, void *buf, size_t len, size_t *l))
zrtos_error_t zrtos_vfs_module_avr_spi_sync__on_write_callback(zrtos_vfs_module_spi_sync_inode_t *inode_data, zrtos_vfs_module_spi_sync_file_t *file_data, void *buf, size_t len, size_t *l)
◆ zrtos_vfs_module_avr_spi_sync__on_write_callback()
Definition at line 21 of file sync.h.
33 while(!(SPSR & (1<<SPIF))){
#define ZRTOS_CAST(type, value)
size_t zrtos_types__ptr_get_byte_distance(void *bigger, void *smaller)
zrtos_vfs_module_spi_sync_control_t control
◆ ZRTOS_VFS_PLUGIN__INIT()