|
static const struct BaseBlockDeviceVMT | ndVmt |
|
NullDevice | ND1 = { &ndVmt, BLK_READY } |
|
◆ nd_get_info()
static bool nd_get_info |
( |
void * |
, |
|
|
BlockDeviceInfo * |
bdip |
|
) |
| |
|
static |
Definition at line 44 of file null_device.cpp.
44 {
45
46
47
48
49 bdip->blk_num = 1000;
50 bdip->blk_size = 512;
51 return HAL_SUCCESS;
52}
◆ nd_is_inserted()
static bool nd_is_inserted |
( |
void * |
| ) |
|
|
static |
◆ nd_is_protected()
static bool nd_is_protected |
( |
void * |
| ) |
|
|
static |
◆ nd_return_success()
static bool nd_return_success |
( |
void * |
| ) |
|
|
static |
◆ nd_return_success_read()
static bool nd_return_success_read |
( |
void * |
, |
|
|
uint32_t |
, |
|
|
uint8_t * |
buffer, |
|
|
uint32_t |
n |
|
) |
| |
|
static |
Definition at line 33 of file null_device.cpp.
33 {
34
36
37 return HAL_SUCCESS;
38}
static BigBufferHandle buffer
◆ nd_return_success_write()
static bool nd_return_success_write |
( |
void * |
, |
|
|
uint32_t |
, |
|
|
const uint8_t * |
, |
|
|
uint32_t |
|
|
) |
| |
|
static |
◆ ND1
NullDevice ND1 = { &ndVmt, BLK_READY } |
◆ ndVmt
const struct BaseBlockDeviceVMT ndVmt |
|
static |
Initial value:= {
}
static bool nd_return_success_read(void *, uint32_t, uint8_t *buffer, uint32_t n)
static bool nd_get_info(void *, BlockDeviceInfo *bdip)
static bool nd_return_success_write(void *, uint32_t, const uint8_t *, uint32_t)
static bool nd_is_protected(void *)
static bool nd_return_success(void *)
static bool nd_is_inserted(void *)
Definition at line 54 of file null_device.cpp.
Go to the source code of this file.