-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCH56x_bus8.h
41 lines (32 loc) · 945 Bytes
/
CH56x_bus8.h
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
35
36
37
38
39
40
41
/********************************** (C) COPYRIGHT *******************************
* File Name : CH56x_bus8.h
* Author : WCH, bvernoux
* Version : V1.1
* Date : 2022/08/07
* Description
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Copyright (c) 2022 Benjamin VERNOUX
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#ifndef __CH56x_BUS8_H__
#define __CH56x_BUS8_H__
#ifdef __cplusplus
extern "C" {
#endif
#define ADDR_NONE 0x00
#define ADDR_6 0x04
#define ADDR_10 0x08
#define ADDR_15 0x0c
#define WIDTH_3 0x00
#define WIDTH_5 0x10
#define WIDTH_9 0x20
#define WIDTH_16 0x30
#define HOLD_2 0x00
#define HOLD_3 0x40
#define SETUP_2 0x00
#define SETUP_3 0x80
void BUS8_Init(uint8_t addroe, uint8_t width, uint8_t hold, uint8_t setup);
#ifdef __cplusplus
}
#endif
#endif // __CH56x_BUS8_H__