PHiLIP
i2c.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
20 #ifndef I2C_H_
21 #define I2C_H_
22 
23 /* Function prototypes ********************************************************/
31 void init_dut_i2c(map_t *reg);
32 
41 error_t commit_dut_i2c();
42 
47 
51 void init_dut_i2c_msp();
52 
56 void deinit_dut_i2c_msp();
57 
58 #endif /* I2C_H_ */
59 
void deinit_dut_i2c_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: i2c.c:114
void init_dut_i2c(map_t *reg)
Initializes i2c registers.
Definition: i2c.c:81
void init_dut_i2c_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: i2c.c:93
The memory map.
Definition: PHiLIP_typedef.h:340
error_t commit_dut_i2c()
Commits the i2c registers and executes operations.
Definition: i2c.c:123
void update_dut_i2c_inputs()
Updates the i2c input levels.
Definition: i2c.c:180