i2c_s_async_get_bytes_received

Retrieve the number of received bytes in the buffer.

int32_t i2c_s_async_get_bytes_received(
    const struct i2c_s_async_descriptor *const descr
)

This function retrieves the number of received bytes which were not read out

Parameters

descr

Type: const struct i2c_s_async_descriptor Struct *const

An I2C slave descriptor which is used to communicate through

Returns

Type: int32_t

The amount of bytes received