Home
last modified time | relevance | path

Searched refs:DECLARE_FAKE_VALUE_FUNC (Results 1 – 25 of 57) sorted by relevance

123

/Zephyr-latest/include/zephyr/drivers/regulator/
Dfake.h16 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
17 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
18 DECLARE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_voltages,
20 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
22 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
24 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit,
28 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit,
30 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
32 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_rd_client/src/
Dstubs.h25 DECLARE_FAKE_VALUE_FUNC(uint8_t, coap_header_get_code, const struct coap_packet *);
30 DECLARE_FAKE_VALUE_FUNC(int, coap_append_option_int, struct coap_packet *, uint16_t, unsigned int);
31 DECLARE_FAKE_VALUE_FUNC(int, coap_packet_append_option, struct coap_packet *, uint16_t,
35 DECLARE_FAKE_VALUE_FUNC(int, coap_packet_append_payload_marker, struct coap_packet *);
36 DECLARE_FAKE_VALUE_FUNC(int, coap_find_options, const struct coap_packet *, uint16_t,
40 DECLARE_FAKE_VALUE_FUNC(uint16_t, coap_next_id);
43 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_start, struct lwm2m_ctx *);
44 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_stop, struct lwm2m_ctx *);
45 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_open_socket, struct lwm2m_ctx *);
46 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *);
[all …]
/Zephyr-latest/include/zephyr/drivers/stepper/
Dstepper_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_enable, const struct device *, bool);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_move_by, const struct device *, int32_t);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_max_velocity, const struct device *, uint32_t);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_micro_step_res, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_micro_step_res, const struct device *,
29 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_reference_position, const struct device *, int32_t);
31 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_actual_position, const struct device *, int32_t *);
33 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_move_to, const struct device *, int32_t);
35 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_is_moving, const struct device *, bool *);
37 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_run, const struct device *, enum stepper_direction,
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.h26 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_pause);
27 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_resume);
28 DECLARE_FAKE_VALUE_FUNC(struct lwm2m_message *, find_msg, struct coap_pending *,
31 DECLARE_FAKE_VALUE_FUNC(size_t, coap_pendings_count, struct coap_pending *, size_t);
33 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_send_message_async, struct lwm2m_message *);
36 DECLARE_FAKE_VALUE_FUNC(bool, coap_pending_cycle, struct coap_pending *);
37 DECLARE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *,
39 DECLARE_FAKE_VALUE_FUNC(int64_t, engine_observe_shedule_next_event, struct observe_node *, uint16_t,
41 DECLARE_FAKE_VALUE_FUNC(int, handle_request, struct coap_packet *, struct lwm2m_message *);
44 DECLARE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *);
[all …]
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *);
28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
30 DECLARE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *,
33 DECLARE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t,
38 DECLARE_FAKE_VALUE_FUNC(int, fake_can_recover, const struct device *, k_timeout_t);
40 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_state, const struct device *, enum can_state *,
[all …]
/Zephyr-latest/include/zephyr/drivers/rtc/
Drtc_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_time, const struct device *, const struct rtc_time *);
18 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_time, const struct device *, struct rtc_time *);
21 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_supported_fields, const struct device *, uint16_t,
23 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_time, const struct device *, uint16_t, uint16_t,
25 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_time, const struct device *, uint16_t, uint16_t *,
27 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_is_pending, const struct device *, uint16_t);
28 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_callback, const struct device *, uint16_t,
33 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_update_set_callback, const struct device *,
38 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_calibration, const struct device *, int32_t);
39 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_calibration, const struct device *, int32_t *);
/Zephyr-latest/tests/bluetooth/host/conn/mocks/
Dkernel.h34 DECLARE_FAKE_VALUE_FUNC(bool, k_is_in_isr);
35 DECLARE_FAKE_VALUE_FUNC(int, k_poll_signal_raise, struct k_poll_signal *, int);
36 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
37 DECLARE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *);
39 DECLARE_FAKE_VALUE_FUNC(k_tid_t, k_sched_current_thread_query);
42 DECLARE_FAKE_VALUE_FUNC(int, k_work_cancel_delayable, struct k_work_delayable *);
43 DECLARE_FAKE_VALUE_FUNC(bool, k_work_flush, struct k_work *, struct k_work_sync *);
44 DECLARE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *);
45 DECLARE_FAKE_VALUE_FUNC(int, k_work_submit_to_queue, struct k_work_q *, struct k_work *);
46 DECLARE_FAKE_VALUE_FUNC(int, k_work_reschedule, struct k_work_delayable *, k_timeout_t);
[all …]
Dhci_core.h27 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t);
28 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
29 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_le_read_remote_features, struct bt_conn *);
30 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_disconnect, uint16_t, uint8_t);
31 DECLARE_FAKE_VALUE_FUNC(bool, bt_le_conn_params_valid, const struct bt_le_conn_param *);
33 DECLARE_FAKE_VALUE_FUNC(int, bt_send, struct net_buf *);
36 DECLARE_FAKE_VALUE_FUNC(int, bt_le_create_conn, const struct bt_conn *);
37 DECLARE_FAKE_VALUE_FUNC(int, bt_le_create_conn_cancel);
38 DECLARE_FAKE_VALUE_FUNC(int, bt_le_create_conn_synced, const struct bt_conn *,
40 DECLARE_FAKE_VALUE_FUNC(const bt_addr_le_t *, bt_lookup_id_addr, uint8_t, const bt_addr_le_t *);
[all …]
Dscan.h18 DECLARE_FAKE_VALUE_FUNC(int, bt_le_scan_user_add, enum bt_le_scan_user);
19 DECLARE_FAKE_VALUE_FUNC(int, bt_le_scan_user_remove, enum bt_le_scan_user);
20 DECLARE_FAKE_VALUE_FUNC(bool, bt_le_explicit_scanner_running);
Dsys_clock.h15 DECLARE_FAKE_VALUE_FUNC(k_timepoint_t, sys_timepoint_calc, k_timeout_t);
16 DECLARE_FAKE_VALUE_FUNC(k_timeout_t, sys_timepoint_timeout, k_timepoint_t);
/Zephyr-latest/tests/bluetooth/audio/ascs/include/
Dbap_unicast_server.h18 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_config, struct bt_conn *,
22 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *,
25 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *,
27 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *,
29 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *,
31 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *,
33 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *,
35 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *,
37 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
/Zephyr-latest/tests/bluetooth/host/id/mocks/
Dsmp.h22 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_irk_get, uint8_t *, uint8_t *);
23 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_tk, struct bt_conn *, const uint8_t *);
24 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_generate_sc_data, struct bt_le_oob_sc_data *);
25 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_sc_data, struct bt_conn *,
27 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_get_sc_data, struct bt_conn *,
Dadv.h23 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable, struct bt_le_ext_adv *, bool);
24 DECLARE_FAKE_VALUE_FUNC(struct bt_le_ext_adv *, bt_le_adv_lookup_legacy);
25 DECLARE_FAKE_VALUE_FUNC(uint8_t, bt_le_ext_adv_get_index, struct bt_le_ext_adv *);
26 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_legacy, struct bt_le_ext_adv *, bool);
27 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_ext, struct bt_le_ext_adv *, bool,
Dkernel.h18 DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
19 DECLARE_FAKE_VALUE_FUNC(int, k_work_schedule, struct k_work_delayable *, k_timeout_t);
20 DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
23 DECLARE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *);
Dhci_core.h17 DECLARE_FAKE_VALUE_FUNC(int, bt_unpair, uint8_t, const bt_addr_le_t *);
18 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t);
19 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
Dnet_buf.h18 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
19 DECLARE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
20 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add_mem, struct net_buf_simple *, const void *,
Dscan.h13 DECLARE_FAKE_VALUE_FUNC(int, bt_le_scan_set_enable, uint8_t);
14 DECLARE_FAKE_VALUE_FUNC(bool, bt_le_scan_active_scanner_running);
/Zephyr-latest/tests/bluetooth/host/crypto/mocks/
Daes.h19 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_crypto_init);
20 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t);
21 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_import_key, const psa_key_attributes_t *, const uint8_t *,
23 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_cipher_encrypt, mbedtls_svc_key_id_t, psa_algorithm_t,
25 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_destroy_key, mbedtls_svc_key_id_t);
Dprng.h16 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_crypto_init);
17 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t);
/Zephyr-latest/include/zephyr/drivers/comparator/
Dfake_comp.h17 DECLARE_FAKE_VALUE_FUNC(int,
21 DECLARE_FAKE_VALUE_FUNC(int,
26 DECLARE_FAKE_VALUE_FUNC(int,
32 DECLARE_FAKE_VALUE_FUNC(int,
/Zephyr-latest/tests/drivers/i2c/i2c_emul/include/
Demulated_target.hpp27 DECLARE_FAKE_VALUE_FUNC(int, target_read_requested_##n, struct i2c_target_config *, \
29 DECLARE_FAKE_VALUE_FUNC(int, target_read_processed_##n, struct i2c_target_config *, \
31 DECLARE_FAKE_VALUE_FUNC(int, target_write_requested_##n, struct i2c_target_config *); \
32 DECLARE_FAKE_VALUE_FUNC(int, target_write_received_##n, struct i2c_target_config *, \
34 DECLARE_FAKE_VALUE_FUNC(int, target_stop_##n, struct i2c_target_config *); \
35 DECLARE_FAKE_VALUE_FUNC(int, target_buf_read_requested_##n, struct i2c_target_config *, \
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Dmock_kernel.h17 DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
18 DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
20 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
/Zephyr-latest/include/zephyr/drivers/eeprom/
Deeprom_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
21 DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
/Zephyr-latest/tests/net/lib/coap_client/src/
Dstubs.h44 DECLARE_FAKE_VALUE_FUNC(uint32_t, z_impl_sys_rand32_get);
45 DECLARE_FAKE_VALUE_FUNC(ssize_t, z_impl_zsock_recvfrom, int, void *, size_t, int, struct sockaddr *,
47 DECLARE_FAKE_VALUE_FUNC(ssize_t, z_impl_zsock_sendto, int, void*, size_t, int,
/Zephyr-latest/tests/bluetooth/host/keys/mocks/
Dsettings_store.h16 DECLARE_FAKE_VALUE_FUNC(int, bt_settings_store_keys, uint8_t, struct bt_addr_le_t *, const void *,
18 DECLARE_FAKE_VALUE_FUNC(int, bt_settings_delete_keys, uint8_t, struct bt_addr_le_t *);

123