![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
Data Structures | |
struct | lpc_nandflash_size_t |
NAND Flash Size structure. More... | |
Modules | |
BOARD: Driver for K9F1G | |
BOARD: K9F1G NAND Flash drivers | |
Functions | |
void | lpc_nandflash_init (void) |
Initialize flash. More... | |
void | lpc_nandflash_DeInit (void) |
De-initialize flash. More... | |
const lpc_nandflash_size_t * | lpc_nandflash_get_size (void) |
Return the flash size. More... | |
void | lpc_nandflash_get_id (uint8_t *pData) |
Read manufacturer ID and device ID. More... | |
uint8_t | lpc_nandflash_read_status (void) |
Read status. More... | |
void | lpc_nandflash_erase_block (uint32_t block) |
Erase a block. More... | |
uint32_t | lpc_nandflash_write_page (uint32_t block, uint32_t page, uint8_t *data, uint32_t size) |
Write a page to NAND FLASH. More... | |
void | lpc_nandflash_read_start (uint32_t block, uint32_t page, uint32_t ofs) |
Start reading data from NAND FLASH. More... | |
void | lpc_nandflash_read_data (uint8_t *data, uint32_t size) |
Read data from NAND FLASH. More... | |
void lpc_nandflash_DeInit | ( | void | ) |
void lpc_nandflash_erase_block | ( | uint32_t | block | ) |
Erase a block.
block | : block address |
Definition at line 115 of file lpc_nandflash_k9f1g.c.
void lpc_nandflash_get_id | ( | uint8_t * | pData | ) |
Read manufacturer ID and device ID.
pData | pointer to buffer to read |
Definition at line 78 of file lpc_nandflash_k9f1g.c.
const lpc_nandflash_size_t* lpc_nandflash_get_size | ( | void | ) |
Return the flash size.
Definition at line 72 of file lpc_nandflash_k9f1g.c.
void lpc_nandflash_init | ( | void | ) |
void lpc_nandflash_read_data | ( | uint8_t * | data, |
uint32_t | size | ||
) |
Read data from NAND FLASH.
data | : pointer to buffer to read |
size | : the number of read bytes |
Definition at line 187 of file lpc_nandflash_k9f1g.c.
void lpc_nandflash_read_start | ( | uint32_t | block, |
uint32_t | page, | ||
uint32_t | ofs | ||
) |
Start reading data from NAND FLASH.
block | : block index |
page | : page index |
ofs | : offset in page |
Definition at line 165 of file lpc_nandflash_k9f1g.c.
uint8_t lpc_nandflash_read_status | ( | void | ) |
Read status.
Definition at line 98 of file lpc_nandflash_k9f1g.c.
uint32_t lpc_nandflash_write_page | ( | uint32_t | block, |
uint32_t | page, | ||
uint8_t * | data, | ||
uint32_t | size | ||
) |
Write a page to NAND FLASH.
block | : block index |
page | : page index |
data | : pointer to buffer to write |
size | : the number of written bytes |
Definition at line 135 of file lpc_nandflash_k9f1g.c.