RTEMS
5.0.0
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
bfin
include
libcpu
spi.h
1
/*
2
* RTEMS driver for Blackfin SPI
3
*
4
* COPYRIGHT (c) 2010 Kallisti Labs, Los Gatos, CA, USA
5
* written by Allan Hessenflow <allanh@kallisti.com>
6
*
7
* The license and distribution terms for this file may be
8
* found in the file LICENSE in this distribution or at
9
* http://www.rtems.org/license/LICENSE.
10
*/
11
12
#ifndef _spi_h
13
#define _spi_h
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
typedef
struct
{
20
void
*base;
21
/* remaining entries are for internal use */
22
rtems_id
sem;
23
int
bytes_per_word;
24
uint16_t idle_pattern;
25
uint8_t *rd_ptr;
26
const
uint8_t *wr_ptr;
27
int
len;
28
}
bfin_spi_state_t
;
29
30
typedef
struct
{
31
rtems_libi2c_bus_t
bus;
32
bfin_spi_state_t
p
;
33
}
bfin_spi_bus_t
;
34
35
36
void
bfin_spi_isr(
int
v
);
37
38
rtems_status_code
bfin_spi_init(
rtems_libi2c_bus_t
*bus);
39
40
rtems_status_code
bfin_spi_send_start(
rtems_libi2c_bus_t
*bus);
41
42
int
bfin_spi_read_bytes(
rtems_libi2c_bus_t
*bus,
unsigned
char
*buf,
int
len);
43
44
int
bfin_spi_write_bytes(
rtems_libi2c_bus_t
*bus,
unsigned
char
*buf,
int
len);
45
46
int
bfin_spi_ioctl(
rtems_libi2c_bus_t
*bus,
int
cmd,
void
*arg);
47
48
#ifdef __cplusplus
49
}
50
#endif
51
52
53
#endif
/* _spi_h */
rtems_libi2c_bus_t_
Definition:
libi2c.h:160
p
unsigned p
Definition:
tte.h:90
bfin_spi_state_t
Definition:
spi.h:19
rtems_status_code
rtems_status_code
Classic API Status.
Definition:
status.h:43
rtems_id
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition:
types.h:83
v
unsigned v
Definition:
tte.h:73
bfin_spi_bus_t
Definition:
spi.h:30
Generated by
1.8.13