|
OPTIGA™ Trust M
Host Library Documentation
|
Go to the documentation of this file.
49 #define PAL_I2C_EVENT_SUCCESS (0x0000)
50 #define PAL_I2C_EVENT_ERROR (0x0001)
52 #define PAL_I2C_EVENT_BUSY (0x0002)
LIBRARY_EXPORTS pal_status_t pal_i2c_write(const pal_i2c_t *p_i2c_context, uint8_t *p_data, uint16_t length)
Writes on I2C bus.
LIBRARY_EXPORTS pal_status_t pal_i2c_deinit(const pal_i2c_t *p_i2c_context)
De-initializes the I2C master.
uint8_t slave_address
I2C slave address.
PAL I2C context structure.
LIBRARY_EXPORTS pal_status_t pal_i2c_init(const pal_i2c_t *p_i2c_context)
Initializes the I2C master.
LIBRARY_EXPORTS pal_status_t pal_i2c_set_bitrate(const pal_i2c_t *p_i2c_context, uint16_t bitrate)
Sets the I2C Master bitrate.
void * upper_layer_event_handler
Pointer to store the callers handler.
LIBRARY_EXPORTS pal_status_t pal_i2c_read(const pal_i2c_t *p_i2c_context, uint8_t *p_data, uint16_t length)
Reads from I2C bus.
void * p_upper_layer_ctx
Pointer to store the callers context information.
This file provides the prototype declarations of platform abstraction layer.
struct pal_i2c pal_i2c_t
PAL I2C context structure.
void * p_i2c_hw_config
Pointer to I2C master platform specific context.