Mistake on this page?
Report an issue in GitHub or email us
Modules | Data Structures | Typedefs | Enumerations
I2C hal

The I2C hal provides a low level interface to the I2C interface of a target. More...

Modules

 I2C hal tests
 The I2C test validate proper implementation of the I2C hal.
 
 I2C Events Macros
 
 I2C Configuration Functions
 

Defined behavior


 
 Synchronous I2C Hardware Abstraction Layer for slave
 
 Asynchronous I2C Hardware Abstraction Layer
 

Data Structures

struct  i2c_async_event
 Structure describing the status of async transfer. More...
 
struct  i2c
 I2C HAL structure. More...
 
struct  i2c_capabilities_t
 

Typedefs

typedef struct i2c_async_event i2c_async_event_t
 Structure describing the status of async transfer. More...
 
typedef void(* i2c_async_handler_f) (i2c_t *obj, i2c_async_event_t *event, void *ctx)
 Asynchronous transfer callback. More...
 

Enumerations

Detailed Description

The I2C hal provides a low level interface to the I2C interface of a target.

Defined behavior

Undefined behaviors

Typedef Documentation

Structure describing the status of async transfer.

typedef void(* i2c_async_handler_f) (i2c_t *obj, i2c_async_event_t *event, void *ctx)

Asynchronous transfer callback.

Parameters
objThe I2C object
eventPointer to the event holding async transfer status
ctxThe context pointer
Note
Callback is invoked when async transfer completes or when an error is detected.

Definition at line 142 of file i2c_api.h.

Enumeration Type Documentation

anonymous enum

Transmission error codes.

Definition at line 157 of file i2c_api.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.