Lines Matching defs:timeout_ref
263 * @param timeout_ref: Reference to target timeout
267 uint8_t awaited_value, uint64_t timeout_ref)
276 if (timeout_elapsed(timeout_ref)) {
290 * @param timeout_ref: Reference to target timeout
293 static int i2c_ack_failed(struct i2c_handle_s *hi2c, uint64_t timeout_ref)
305 if (timeout_elapsed(timeout_ref)) {
335 * @param timeout_ref: Reference to target timeout
338 static int i2c_wait_txis(struct i2c_handle_s *hi2c, uint64_t timeout_ref)
342 if (i2c_ack_failed(hi2c, timeout_ref) != 0) {
346 if (timeout_elapsed(timeout_ref)) {
362 * @param timeout_ref: Reference to target timeout
365 static int i2c_wait_stop(struct i2c_handle_s *hi2c, uint64_t timeout_ref)
369 if (i2c_ack_failed(hi2c, timeout_ref) != 0) {
373 if (timeout_elapsed(timeout_ref)) {
430 * @param timeout_ref: Reference to target timeout
435 uint16_t mem_add_size, uint64_t timeout_ref)
440 if (i2c_wait_txis(hi2c, timeout_ref) != 0) {
453 if (i2c_wait_txis(hi2c, timeout_ref) != 0) {
462 if (i2c_wait_flag(hi2c, I2C_FLAG_TCR, 0, timeout_ref) != 0) {
477 * @param timeout_ref: Reference to target timeout
482 uint64_t timeout_ref)
487 if (i2c_wait_txis(hi2c, timeout_ref) != 0) {
500 if (i2c_wait_txis(hi2c, timeout_ref) != 0) {
509 if (i2c_wait_flag(hi2c, I2C_FLAG_TC, 0, timeout_ref) != 0) {
534 uint64_t timeout_ref;
556 timeout_ref = timeout_init_us(I2C_TIMEOUT_BUSY_MS * 1000);
557 if (i2c_wait_flag(hi2c, I2C_FLAG_BUSY, 1, timeout_ref) != 0) {
565 timeout_ref = timeout_init_us(timeout_ms * 1000);
570 mem_add_size, timeout_ref) != 0) {
599 if (i2c_wait_txis(hi2c, timeout_ref) != 0) {
611 timeout_ref) != 0) {
637 if (i2c_wait_stop(hi2c, timeout_ref) != 0) {
715 uint64_t timeout_ref;
737 timeout_ref = timeout_init_us(I2C_TIMEOUT_BUSY_MS * 1000);
738 if (i2c_wait_flag(hi2c, I2C_FLAG_BUSY, 1, timeout_ref) != 0) {
749 mem_add_size, timeout_ref) != 0) {
770 if (i2c_wait_flag(hi2c, I2C_FLAG_RXNE, 0, timeout_ref) != 0) {
781 timeout_ref) != 0) {
806 if (i2c_wait_stop(hi2c, timeout_ref) != 0) {
900 uint64_t timeout_ref;
921 timeout_ref = timeout_init_us(timeout_ms * 1000);
928 if (timeout_elapsed(timeout_ref)) {
937 timeout_ref) != 0) {
950 if (i2c_wait_flag(hi2c, I2C_FLAG_STOPF, 0, timeout_ref) != 0) {
963 timeout_ref) != 0) {