Main Page
Classes
Class List
Class Members
All
a
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
Functions
Variables
a
c
d
e
f
g
h
i
m
n
o
p
q
r
t
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
u
v
w
Functions
c
d
g
i
m
n
o
p
r
s
u
w
Variables
Enumerations
Enumerator
Macros
a
b
c
d
e
f
m
n
o
r
s
v
w
src
hcl_spi.h
Go to the documentation of this file.
1
//==============================================================================
2
//
3
// hcl_spi.h - Seiko Epson Hardware Control Library
4
//
5
// This layer of indirection is added to allow the sample code to call
6
// generic SPI functions to work on multiple hardware platforms.
7
//
8
//
9
// THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
10
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
// NONINFRINGEMENT, SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A
13
// PARTICULAR PURPOSE. IN NO EVENT SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE
14
// OR CLAIM, ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THE
15
// SOFTWARE.
16
//
17
//==============================================================================
18
#pragma once
19
20
#include <stdint.h>
21
22
typedef
enum
{
23
SPI_MODE0
= 0,
24
SPI_MODE1
= 1,
25
SPI_MODE2
= 2,
26
SPI_MODE3
= 3
27
}
SPIMode
;
28
29
#define SPI_CHAN 0
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
// Prototypes for generic SPI functions
36
int
spiInit
(uint8_t mode, uint32_t khzspeed);
37
int
spiRelease
(
void
);
38
uint8_t
spiTransfer
(uint8_t value);
39
40
#ifdef __cplusplus
41
}
42
#endif
spiRelease
int spiRelease(void)
Definition:
hcl_spi_rpi.c:67
SPI_MODE0
@ SPI_MODE0
Definition:
hcl_spi.h:23
SPI_MODE1
@ SPI_MODE1
Definition:
hcl_spi.h:24
SPI_MODE3
@ SPI_MODE3
Definition:
hcl_spi.h:26
spiInit
int spiInit(uint8_t mode, uint32_t khzspeed)
Definition:
hcl_spi_rpi.c:45
SPI_MODE2
@ SPI_MODE2
Definition:
hcl_spi.h:25
spiTransfer
uint8_t spiTransfer(uint8_t value)
Definition:
hcl_spi_rpi.c:80
SPIMode
SPIMode
Definition:
hcl_spi.h:22
ess_imu_driver
Author(s):
autogenerated on Wed Dec 11 2024 03:06:30