Lines Matching refs:TWAI_CHECK
29 #define TWAI_CHECK(cond, ret_val) ({ \ macro
401 TWAI_CHECK(g_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install()
402 TWAI_CHECK(t_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install()
403 TWAI_CHECK(f_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install()
404 TWAI_CHECK(g_config->rx_queue_len > 0, ESP_ERR_INVALID_ARG); in twai_driver_install()
405 TWAI_CHECK(g_config->tx_io >= 0 && g_config->tx_io < GPIO_NUM_MAX, ESP_ERR_INVALID_ARG); in twai_driver_install()
406 TWAI_CHECK(g_config->rx_io >= 0 && g_config->rx_io < GPIO_NUM_MAX, ESP_ERR_INVALID_ARG); in twai_driver_install()
407 …TWAI_CHECK(t_config->brp >= SOC_TWAI_BRP_MIN && t_config->brp <= SOC_TWAI_BRP_MAX, ESP_ERR_INVALID… in twai_driver_install()
409 TWAI_CHECK(!(g_config->intr_flags & ESP_INTR_FLAG_IRAM), ESP_ERR_INVALID_ARG); in twai_driver_install()
420 TWAI_CHECK(p_twai_obj_dummy != NULL, ESP_ERR_NO_MEM); in twai_driver_install()
530 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_transmit()
531 TWAI_CHECK(message != NULL, ESP_ERR_INVALID_ARG); in twai_transmit()
532 …TWAI_CHECK((message->data_length_code <= TWAI_FRAME_MAX_DLC) || message->dlc_non_comp, ESP_ERR_INV… in twai_transmit()
590 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_receive()
591 TWAI_CHECK(message != NULL, ESP_ERR_INVALID_ARG); in twai_receive()
611 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_read_alerts()
612 TWAI_CHECK(alerts != NULL, ESP_ERR_INVALID_ARG); in twai_read_alerts()
629 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_reconfigure_alerts()
667 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_get_status_info()
668 TWAI_CHECK(status_info != NULL, ESP_ERR_INVALID_ARG); in twai_get_status_info()
689 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_clear_transmit_queue()
690 TWAI_CHECK(p_twai_obj->tx_queue != NULL, ESP_ERR_NOT_SUPPORTED); in twai_clear_transmit_queue()
704 TWAI_CHECK(p_twai_obj != NULL, ESP_ERR_INVALID_STATE); in twai_clear_receive_queue()