Zephyr API 3.6.99
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
18extern "C" {
19#endif
20
34void ft8xx_wr8(uint32_t address, uint8_t data);
35
42void ft8xx_wr16(uint32_t address, uint16_t data);
43
50void ft8xx_wr32(uint32_t address, uint32_t data);
51
60
69
78
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_ */
void ft8xx_wr32(uint32_t address, uint32_t data)
Write 4 bytes (32 bits) to FT8xx memory.
void ft8xx_wr8(uint32_t address, uint8_t data)
Write 1 byte (8 bits) to FT8xx memory.
uint32_t ft8xx_rd32(uint32_t address)
Read 4 bytes (32 bits) from FT8xx memory.
uint8_t ft8xx_rd8(uint32_t address)
Read 1 byte (8 bits) from FT8xx memory.
uint16_t ft8xx_rd16(uint32_t address)
Read 2 bytes (16 bits) from FT8xx memory.
void ft8xx_wr16(uint32_t address, uint16_t data)
Write 2 bytes (16 bits) to FT8xx memory.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89