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 ( nonce_nand_device_command  )

Definition at line 52 of file nonce.c.

References ERROR_OK.

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

Definition at line 29 of file nonce.c.

References ERROR_OK.

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

Definition at line 25 of file nonce.c.

References ERROR_OK.

Referenced by nonce_nand_reset().

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

Definition at line 41 of file nonce.c.

References ERROR_OK.

static int nonce_nand_init ( struct nand_device nand)
static

Definition at line 57 of file nonce.c.

References ERROR_OK.

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

Definition at line 33 of file nonce.c.

References ERROR_OK.

static int nonce_nand_reset ( struct nand_device nand)
static

Definition at line 47 of file nonce.c.

References NAND_CMD_RESET, and nonce_nand_command().

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

Definition at line 37 of file nonce.c.

References ERROR_OK.

Variable Documentation

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,
}
static int nonce_nand_read(struct nand_device *nand, void *data)
Definition: nonce.c:33
static int nonce_nand_command(struct nand_device *nand, uint8_t command)
Definition: nonce.c:25
static int nonce_nand_fast_block_write(struct nand_device *nand, uint8_t *data, int size)
Definition: nonce.c:41
static int nonce_nand_address(struct nand_device *nand, uint8_t address)
Definition: nonce.c:29
static int nonce_nand_reset(struct nand_device *nand)
Definition: nonce.c:47
static int nonce_nand_init(struct nand_device *nand)
Definition: nonce.c:57
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:96
static int nonce_nand_write(struct nand_device *nand, uint16_t data)
Definition: nonce.c:37

Definition at line 62 of file nonce.c.