OpenOCD
nand_flash_controller
is only used within OpenOCD.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Development Tools
OpenOCD
nand_flash_controller
nand_flash_controller struct
Interface for NAND flash controllers. Not all of these functions are required for full functionality of the NAND driver, but better performance can be achieved by implementing each function.
Syntax
Show:
Summary
Declaration
Definition
from
core.h:50
struct
nand_flash_controller
;
Implemented in
driver.h:23
Fields
Field
Declared as
Description
nand_flash_controller::name
const
char
*
Driver name that is used to select it from configuration files.
nand_flash_controller::usage
const
char
*
Usage of flash command registration.
nand_flash_controller::commands
const
struct
command_registration
*
nand_flash_controller::nand_device_command
__NAND_DEVICE_COMMAND
(
(
*
NAND device command called when driver is instantiated during configuration.
nand_flash_controller::init
int
(
*
)
(
struct
nand_device
*
nand
)
Initialize the NAND device.
nand_flash_controller::reset
int
(
*
)
(
struct
nand_device
*
nand
)
Reset the NAND device.
nand_flash_controller::command
int
(
*
)
(
struct
nand_device
*
nand
,
uint8_t
command
)
Issue a command to the NAND device.
nand_flash_controller::address
int
(
*
)
(
struct
nand_device
*
nand
,
uint8_t
address
)
Write an address to the NAND device.
nand_flash_controller::write_data
int
(
*
)
(
struct
nand_device
*
nand
,
uint16_t
data
)
Write word of data to the NAND device.
nand_flash_controller::read_data
int
(
*
)
(
struct
nand_device
*
nand
,
void
*
data
)
Read word of data from the NAND device.
nand_flash_controller::write_block_data
int
(
*
)
(
struct
nand_device
*
nand
,
uint8_t
*
data
,
int
size
)
Write a block of data to the NAND device.
nand_flash_controller::read_block_data
int
(
*
)
(
struct
nand_device
*
nand
,
uint8_t
*
data
,
int
size
)
Read a block of data from the NAND device.
nand_flash_controller::write_page
int
(
*
)
(
struct
nand_device
*
nand
,
uint32_t
page
,
uint8_t
*
data
,
uint32_t
data_size
,
uint8_t
*
oob
,
uint32_t
oob_size
)
Write a page to the NAND device.
nand_flash_controller::read_page
int
(
*
)
(
struct
nand_device
*
nand
,
uint32_t
page
,
uint8_t
*
data
,
uint32_t
data_size
,
uint8_t
*
oob
,
uint32_t
oob_size
)
Read a page from the NAND device.
nand_flash_controller::nand_ready
int
(
*
)
(
struct
nand_device
*
nand
,
int
timeout
)
Check if the NAND device is ready for more instructions with timeout.
Related Functions
Found 2 other functions taking a
nand_flash_controller
argument:
Function
nand_list_walker()
create_nand_device()
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out