7 #define LUAT_LOG_TAG "sfd"
10 int luat_sfd_status (sfd_drv_t
* drv
) {
13 return drv
->opts
->status(drv
->userdata
);
16 int luat_sfd_read (sfd_drv_t
* drv
, char* buff
, size_t offset
, size_t len
) {
19 return drv
->opts
->read(drv
->userdata
, buff
, offset
, len
);
22 int luat_sfd_write (sfd_drv_t
* drv
, const char* buff
, size_t offset
, size_t len
) {
25 return drv
->opts
->write(drv
->userdata
, buff
, offset
, len
);
28 int luat_sfd_erase (sfd_drv_t
* drv
, size_t offset
, size_t len
) {
31 return drv
->opts
->erase(drv
->userdata
, offset
, len
);
34 int luat_sfd_ioctl (sfd_drv_t
* drv
, size_t cmd
, void* buff
) {
37 return drv
->opts
->ioctl(drv
->userdata
, cmd
, buff
);