wcxb_flash.h 970 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * wcxb SPI library
  3. *
  4. * Copyright (C) 2013 Digium, Inc.
  5. *
  6. * All rights reserved.
  7. *
  8. */
  9. /*
  10. * See http://www.asterisk.org for more information about
  11. * the Asterisk project. Please do not directly contact
  12. * any of the maintainers of this project for assistance;
  13. * the project provides a web site, mailing lists and IRC
  14. * channels for your use.
  15. *
  16. * This program is free software, distributed under the terms of
  17. * the GNU General Public License Version 2 as published by the
  18. * Free Software Foundation. See the LICENSE file included with
  19. * this program for more details.
  20. */
  21. #ifndef __WCXB_FLASH_H__
  22. #define __WCXB_FLASH_H__
  23. extern int wcxb_flash_read(struct wcxb_spi_device *spi, unsigned int address,
  24. void *data, size_t len);
  25. extern int wcxb_flash_sector_erase(struct wcxb_spi_device *spi, unsigned int
  26. address);
  27. extern int wcxb_flash_write(struct wcxb_spi_device *spi, unsigned int address,
  28. const void *data, size_t len);
  29. #endif