1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef I2C_API_H
9 #define I2C_API_H
10 
11 #include <internal/i2c_depend.h>
12 #include <internal/i2c_driver.h>
13 
14 #include <stdint.h>
15 
16 #define I2C_MP_START_ADDR 0x50
17 
18 I2C_ERR_t f_i2c_api_recv_data(
19     I2C_EN_CH_t ch,
20     uint32_t target_address,
21     uint32_t address,
22     uint8_t *data,
23     int length);
24 
25 I2C_ERR_t f_i2c_api_send_data(
26     I2C_EN_CH_t ch,
27     uint32_t target_address,
28     uint32_t address,
29     const uint8_t *data,
30     int length);
31 
32 #endif /* I2C_API_H */
33