TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
This file provides all the functions prototypes for I2C Class. More...
Go to the source code of this file.
Data Structures | |
struct | I2C_clock_setting_t |
Clock setting structure definenition. More... | |
struct | I2CS_wup_setting_t |
Wakeup Control setting structure definenition. More... | |
struct | I2C_initial_setting_t |
Initial setting structure definenition. More... | |
struct | I2CS_initial_setting_t |
Initial setting structure definenition. More... | |
struct | I2C_t |
I2C handle structure definenition. More... | |
struct | I2CS_t |
I2CS handle structure definenition. More... | |
Functions | |
__STATIC_INLINE void | I2C_reset (I2C_t *p_obj) |
I2C software reset. More... | |
__STATIC_INLINE int32_t | I2C_port_high (I2C_t *p_obj) |
I2C bus port high. More... | |
__STATIC_INLINE void | I2C_stop_condition (I2C_t *p_obj) |
Generate stop condition. More... | |
__STATIC_INLINE uint32_t | I2C_read_data (I2C_t *p_obj) |
Read from Data buffer. More... | |
__STATIC_INLINE void | I2C_write_data (I2C_t *p_obj, uint32_t data) |
Write to Data buffer. More... | |
__STATIC_INLINE int32_t | I2C_restart (I2C_t *p_obj) |
Return restart condition. More... | |
__STATIC_INLINE void | I2C_set_ack (I2C_t *p_obj, int32_t nack) |
Set Ack condition. More... | |
__STATIC_INLINE int32_t | I2C_get_ack (I2C_t *p_obj) |
Return received Ack condition. More... | |
__STATIC_INLINE int32_t | I2C_status_busy (I2C_t *p_obj) |
Return Busy condition. More... | |
__STATIC_INLINE int32_t | I2C_master (I2C_t *p_obj) |
Return The Master status. More... | |
__STATIC_INLINE int32_t | I2C_transmitter (I2C_t *p_obj) |
Return The Transmitter. More... | |
__STATIC_INLINE int32_t | I2C_int_status (I2C_t *p_obj) |
Interrupt Status. More... | |
__STATIC_INLINE void | I2C_clear_int_status (I2C_t *p_obj) |
Interrupt Status Clear. More... | |
__STATIC_INLINE void | I2C_enable_interrupt (I2C_t *p_obj) |
Enable Interrupt setting. More... | |
__STATIC_INLINE void | I2C_enable_interrupt_dma (I2C_t *p_obj, int32_t tx) |
Enable Interrupt setting. More... | |
__STATIC_INLINE void | I2C_disable_interrupt (I2C_t *p_obj) |
Disable Interrupt setting. More... | |
__STATIC_INLINE void | I2C_set_address (I2C_t *p_obj, uint32_t addr) |
Set slave address. More... | |
__STATIC_INLINE int32_t | I2C_slave_detected (I2C_t *p_obj) |
Detecting Slave Address. More... | |
void | I2C_init (I2C_t *p_obj) |
Initializing I2C Regester. More... | |
void | I2C_start_condition (I2C_t *p_obj, uint32_t data) |
Generate start condition. More... | |
uint32_t | I2C_get_clock_setting (I2C_t *p_obj, uint32_t frequency, uint32_t fsys, I2C_clock_setting_t *p_setting) |
Return the I2c clock setting. More... | |
void | I2C_slave_init (I2C_t *p_obj) |
Slave mode setting. More... | |
void | I2CS_init (I2CS_t *p_obj) |
I2C Wakeup Control setting. More... | |
void | I2CS_Primary_slave_adr_set (I2CS_t *p_obj, uint32_t adr) |
Primary Slave Address setting. More... | |
void | I2CS_Secondary_slave_adr_set (I2CS_t *p_obj, uint32_t adr) |
Secondary Slave Address setting. More... | |
This file provides all the functions prototypes for I2C Class.
DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LISENSE AGREEMENT.
(C)Copyright TOSHIBA MICROELECTRONICS CORPORATION 2017 All rights reserved