Zephyr Project API
3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ft8xx_common.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Hubert Miś
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
#ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_
13
#define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_
14
15
#include <
stdint.h
>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
34
void
ft8xx_wr8
(
uint32_t
address,
uint8_t
data
);
35
42
void
ft8xx_wr16
(
uint32_t
address,
uint16_t
data
);
43
50
void
ft8xx_wr32
(
uint32_t
address,
uint32_t
data
);
51
59
uint8_t
ft8xx_rd8
(
uint32_t
address);
60
68
uint16_t
ft8xx_rd16
(
uint32_t
address);
69
77
uint32_t
ft8xx_rd32
(
uint32_t
address);
78
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
/* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_ */
ft8xx_wr32
void ft8xx_wr32(uint32_t address, uint32_t data)
Write 4 bytes (32 bits) to FT8xx memory.
ft8xx_wr8
void ft8xx_wr8(uint32_t address, uint8_t data)
Write 1 byte (8 bits) to FT8xx memory.
ft8xx_rd32
uint32_t ft8xx_rd32(uint32_t address)
Read 4 bytes (32 bits) from FT8xx memory.
ft8xx_rd8
uint8_t ft8xx_rd8(uint32_t address)
Read 1 byte (8 bits) from FT8xx memory.
ft8xx_rd16
uint16_t ft8xx_rd16(uint32_t address)
Read 2 bytes (16 bits) from FT8xx memory.
ft8xx_wr16
void ft8xx_wr16(uint32_t address, uint16_t data)
Write 2 bytes (16 bits) to FT8xx memory.
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
uint16_t
__UINT16_TYPE__ uint16_t
Definition
stdint.h:89
data
static fdata_t data[2]
Definition
test_fifo_contexts.c:15
include
zephyr
drivers
misc
ft8xx
ft8xx_common.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8