|
mikroSDK Reference Manual
|
Go to the documentation of this file.
44 #ifndef _HAL_I2C_MASTER_H_
45 #define _HAL_I2C_MASTER_H_
62 handle_t *hal_i2c_master_handle;
63 handle_t *drv_i2c_master_handle;
133 uint16_t timeout_pass_count;
424 #endif // _HAL_I2C_MASTER_H_
Definition: hal_i2c_master.h:84
err_t hal_i2c_master_set_speed(handle_t *handle, hal_i2c_master_config_t *config)
Set I2C master module speed.
Definition: hal_i2c_master.h:97
hal_i2c_master_timeout_t
Definition: hal_i2c_master.h:81
Definition: hal_i2c_master.h:72
err_t hal_i2c_master_close(handle_t *handle)
Closes I2C Master HAL object.
Definition: hal_i2c_master.h:59
HAL target macros and typedefs.
Definition: hal_i2c_master.h:86
Definition: hal_i2c_master.h:73
hal_ll_pin_name_t hal_pin_name_t
Definition: hal_target.h:59
Definition: hal_i2c_master.h:87
Definition: hal_i2c_master.h:98
Definition: hal_i2c_master.h:71
err_t hal_i2c_master_write_then_read(handle_t handle, uint8_t *write_data_buf, size_t len_write_data, uint8_t *read_data_buf, size_t len_read_data)
Write data followed by read.
I2C Master HAL init configuration structure, consisted of the following fields :
Definition: hal_i2c_master.h:124
err_t hal_i2c_master_write(handle_t handle, uint8_t *write_data_buf, size_t len_write_data)
Write data to the I2C bus.
I2C Master HAL context structure, consisted of the following fields :
Definition: hal_i2c_master.h:147
hal_i2c_master_speed_t
Definition: hal_i2c_master.h:94
void hal_i2c_master_set_slave_address(handle_t *handle, hal_i2c_master_config_t *config)
Set I2C slave address.
err_t hal_i2c_master_open(handle_t *handle, bool hal_obj_open_state)
Open the I2C Master HAL object.
Definition: hal_i2c_master.h:96
Definition: hal_i2c_master.h:88
Definition: hal_i2c_master.h:85
Definition: hal_i2c_master.h:83
hal_i2c_master_err_t
Definition: hal_i2c_master.h:69
void hal_i2c_master_set_timeout(handle_t *handle, hal_i2c_master_config_t *config)
Set I2C master timeout value.
int32_t err_t
Definition: hal_target.h:63
err_t hal_i2c_master_read(handle_t handle, uint8_t *read_data_buf, size_t len_read_data)
Read data from the I2C bus.
void hal_i2c_master_configure_default(hal_i2c_master_config_t *config)
Configure I2C Master HAL configuration structure.
Definition: hal_i2c_master.h:75