OpenOCD
nonce.c File Reference
Include dependency graph for nonce.c:

Go to the source code of this file.

Functions

 NAND_DEVICE_COMMAND_HANDLER (nonce_nand_device_command)
 
static int nonce_nand_address (struct nand_device *nand, uint8_t address)
 
static int nonce_nand_command (struct nand_device *nand, uint8_t command)
 
static int nonce_nand_fast_block_write (struct nand_device *nand, uint8_t *data, int size)
 
static int nonce_nand_init (struct nand_device *nand)
 
static int nonce_nand_read (struct nand_device *nand, void *data)
 
static int nonce_nand_reset (struct nand_device *nand)
 
static int nonce_nand_write (struct nand_device *nand, uint16_t data)
 

Variables

struct nand_flash_controller nonce_nand_controller
 

Function Documentation

◆ NAND_DEVICE_COMMAND_HANDLER()

NAND_DEVICE_COMMAND_HANDLER ( nonce_nand_device_command  )

Definition at line 41 of file nonce.c.

References ERROR_OK.

◆ nonce_nand_address()

static int nonce_nand_address ( struct nand_device nand,
uint8_t  address 
)
static

Definition at line 18 of file nonce.c.

References ERROR_OK.

◆ nonce_nand_command()

static int nonce_nand_command ( struct nand_device nand,
uint8_t  command 
)
static

Definition at line 14 of file nonce.c.

References ERROR_OK.

Referenced by nonce_nand_reset().

◆ nonce_nand_fast_block_write()

static int nonce_nand_fast_block_write ( struct nand_device nand,
uint8_t *  data,
int  size 
)
static

Definition at line 30 of file nonce.c.

References ERROR_OK.

◆ nonce_nand_init()

static int nonce_nand_init ( struct nand_device nand)
static

Definition at line 46 of file nonce.c.

◆ nonce_nand_read()

static int nonce_nand_read ( struct nand_device nand,
void *  data 
)
static

Definition at line 22 of file nonce.c.

References ERROR_OK.

◆ nonce_nand_reset()

static int nonce_nand_reset ( struct nand_device nand)
static

Definition at line 36 of file nonce.c.

References NAND_CMD_RESET, and nonce_nand_command().

◆ nonce_nand_write()

static int nonce_nand_write ( struct nand_device nand,
uint16_t  data 
)
static

Definition at line 26 of file nonce.c.

References ERROR_OK.

Variable Documentation

◆ nonce_nand_controller

struct nand_flash_controller nonce_nand_controller
Initial value:
= {
.name = "nonce",
.nand_device_command = &nonce_nand_device_command,
.init = &nonce_nand_init,
.reset = &nonce_nand_reset,
.command = &nonce_nand_command,
.address = &nonce_nand_address,
.read_data = &nonce_nand_read,
.write_data = &nonce_nand_write,
.write_block_data = &nonce_nand_fast_block_write,
}
const struct command_registration hello_command_handlers[]
Export the registration for the hello command group, so it can be embedded in example drivers.
Definition: hello.c:85
static int nonce_nand_fast_block_write(struct nand_device *nand, uint8_t *data, int size)
Definition: nonce.c:30
static int nonce_nand_address(struct nand_device *nand, uint8_t address)
Definition: nonce.c:18
static int nonce_nand_reset(struct nand_device *nand)
Definition: nonce.c:36
static int nonce_nand_write(struct nand_device *nand, uint16_t data)
Definition: nonce.c:26
static int nonce_nand_read(struct nand_device *nand, void *data)
Definition: nonce.c:22
static int nonce_nand_init(struct nand_device *nand)
Definition: nonce.c:46
static int nonce_nand_command(struct nand_device *nand, uint8_t command)
Definition: nonce.c:14

Definition at line 46 of file nonce.c.