File: wcxb_flash.h

package info (click to toggle)
dahdi-linux 1%3A3.1.0%2Bgit20230717~dfsg-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,668 kB
  • sloc: ansic: 116,367; perl: 2,391; sh: 1,157; makefile: 423; xml: 24
file content (34 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * wcxb SPI library
 *
 * Copyright (C) 2013 Digium, Inc.
 *
 * All rights reserved.
 *
 */

/*
 * See http://www.asterisk.org for more information about
 * the Asterisk project. Please do not directly contact
 * any of the maintainers of this project for assistance;
 * the project provides a web site, mailing lists and IRC
 * channels for your use.
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License Version 2 as published by the
 * Free Software Foundation. See the LICENSE file included with
 * this program for more details.
 */

#ifndef __WCXB_FLASH_H__
#define __WCXB_FLASH_H__

extern int wcxb_flash_read(struct wcxb_spi_device *spi, unsigned int address,
			   void *data, size_t len);

extern int wcxb_flash_sector_erase(struct wcxb_spi_device *spi, unsigned int
				   address);
extern int wcxb_flash_write(struct wcxb_spi_device *spi, unsigned int address,
			    const void *data, size_t len);

#endif