OpenCores
URL https://opencores.org/ocsvn/usb_nand_reader/usb_nand_reader/trunk

Subversion Repositories usb_nand_reader

[/] [usb_nand_reader/] [trunk/] [pc/] [include/] [actions.h] - Rev 6

Go to most recent revision | Compare with Previous | Blame | View Log

#ifndef ACTIONS_H
#define ACTIONS_H
 
#include "include/nand_vendors.h"
 
#define USB_ACTION(pname, ...)		int pname(libusb_device_handle* usb, ##__VA_ARGS__)
 
 
USB_ACTION(nand_reset);
USB_ACTION(nand_enable, int dieIndex);
USB_ACTION(nand_disble);
USB_ACTION(nand_read_id, unsigned char* idBuffer);
USB_ACTION(nand_is_onfi, unsigned char* signature);
USB_ACTION(nand_read_onfi_param_page, unsigned char* paramPageBuffer);
USB_ACTION(nand_set_config_data, pnand_t nand);
USB_ACTION(nand_read_page, unsigned int pageAddress, pnand_t nand);
USB_ACTION(nand_read_page_cache, unsigned int startPageAddress, int pageCount, FILE* storeTo, pnand_t nand);
USB_ACTION(nand_read_status, unsigned char* status);
USB_ACTION(nand_read_status_enhanced, unsigned int address, unsigned char* status);
USB_ACTION(nand_read_unique_id, unsigned char* uid);
int nand_check_uid(unsigned char* buffer);
USB_ACTION(nand_block_erase, unsigned int blockAddress);
USB_ACTION(nand_toggle_wp);
USB_ACTION(nand_page_program, unsigned int pageAddress, pnand_t nand);
 
#endif	/*	ACTIONS_H	*/

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.