OpenOCD
flash/nand/fileio.h File Reference
Include dependency graph for flash/nand/fileio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nand_fileio_state
 

Functions

 COMMAND_HELPER (nand_fileio_parse_args, struct nand_fileio_state *state, struct nand_device **dev, enum fileio_access filemode, bool need_size, bool sw_ecc)
 
int nand_fileio_cleanup (struct nand_fileio_state *state)
 
int nand_fileio_finish (struct nand_fileio_state *state)
 
void nand_fileio_init (struct nand_fileio_state *state)
 
int nand_fileio_read (struct nand_device *nand, struct nand_fileio_state *s)
 
int nand_fileio_start (struct command_invocation *cmd, struct nand_device *nand, const char *filename, int filemode, struct nand_fileio_state *state)
 

Function Documentation

◆ COMMAND_HELPER()

◆ nand_fileio_cleanup()

int nand_fileio_cleanup ( struct nand_fileio_state state)

Definition at line 86 of file flash/nand/fileio.c.

References ERROR_OK, fileio_close(), NULL, and state.

Referenced by COMMAND_HANDLER(), and nand_fileio_finish().

◆ nand_fileio_finish()

int nand_fileio_finish ( struct nand_fileio_state state)

Definition at line 98 of file flash/nand/fileio.c.

References duration_measure(), nand_fileio_cleanup(), and state.

Referenced by COMMAND_HANDLER().

◆ nand_fileio_init()

void nand_fileio_init ( struct nand_fileio_state state)

Definition at line 40 of file flash/nand/fileio.c.

References NAND_OOB_NONE, and state.

Referenced by COMMAND_HANDLER(), and COMMAND_HELPER().

◆ nand_fileio_read()

int nand_fileio_read ( struct nand_device nand,
struct nand_fileio_state s 
)

◆ nand_fileio_start()

int nand_fileio_start ( struct command_invocation cmd,
struct nand_device nand,
const char *  filename,
int  filemode,
struct nand_fileio_state state 
)