Home
last modified time | relevance | path

Searched refs:dev_name (Results 1 – 25 of 44) sorted by relevance

12

/AliOS-Things-master/components/drivers/peripheral/uart/example/
A Duart_example.c38 char dev_name[16] = {0}; in uart_write_test() local
53 snprintf(dev_name, sizeof(dev_name), "/dev/ttyUART%d", port_id ); in uart_write_test()
55 fd = open(dev_name, 0); in uart_write_test()
75 ddkc_info("closing %s\r\n", dev_name); in uart_write_test()
77 ddkc_info("%s closed\r\n", dev_name); in uart_write_test()
92 char dev_name[16] = {0}; in uart_read_test() local
107 snprintf(dev_name, sizeof(dev_name), "/dev/ttyUART%d", port_id ); in uart_read_test()
109 fd = open(dev_name, 0); in uart_read_test()
155 char dev_name[16] = {0}; in uart_echo_test() local
170 snprintf(dev_name, sizeof(dev_name), "/dev/ttyUART%d", port_id ); in uart_echo_test()
[all …]
/AliOS-Things-master/components/linkkit/wifi_provision/zero_config/
A Dawss_registrar.c144 0 == memcmp(dev_name, enrollee_info[i].dev_name, in online_dev_bind_monitor()
153 if (dev_name) { in online_dev_bind_monitor()
221 HAL_Free(dev_name); in awss_enrollee_checkin()
227 if (dev_name) { in awss_enrollee_checkin()
258 0 == memcmp(dev_name, enrollee_info[i].dev_name, in enrollee_enable_somebody_cipher()
299 enrollee_info[i].dev_name, dev_name); in enrollee_enable_somebody_checkin()
306 0 == memcmp(dev_name, enrollee_info[i].dev_name, in enrollee_enable_somebody_checkin()
424 if (dev_name) { in awss_get_cipher_reply()
522 0 == memcmp(dev_name, enrollee_info[i].dev_name, in awss_report_set_interval()
634 if (dev_name) { in awss_report_enrollee_reply()
[all …]
A Dawss_enrollee.c38 char *pk = NULL, *dev_name = NULL, *text = NULL; in awss_init_enrollee_info() local
47 dev_name = awss_zalloc(OS_DEVICE_NAME_LEN + 1); in awss_init_enrollee_info()
48 if (NULL == dev_name) { in awss_init_enrollee_info()
53 HAL_Free(dev_name); in awss_init_enrollee_info()
60 HAL_GetDeviceName(dev_name); in awss_init_enrollee_info()
61 dev_name_len = strlen(dev_name); in awss_init_enrollee_info()
62 printf("dev_name:%s\r\n", dev_name); in awss_init_enrollee_info()
105 memcpy(&enrollee_frame[len], dev_name, dev_name_len); in awss_init_enrollee_info()
139 HAL_Free(dev_name); in awss_init_enrollee_info()
A Dawss_enrollee.h42 uint8_t dev_name[0]; /* device name, unique name for device */ member
106 uint8_t dev_name[MAX_DEV_NAME_LEN + 1]; member
/AliOS-Things-master/components/ble_host/bt_host/port/aos/include/
A Dbt_device.h147 #define DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, cfg_info, \ argument
150 static struct device_config _CONCAT(__config_, dev_name) __used \
155 static struct device _CONCAT(__device_, dev_name) __used \
163 #define DEVICE_DEFINE(dev_name, drv_name, init_fn, pm_control_fn, \ argument
165 DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, cfg_info, \
179 #define DEVICE_DEFINE(dev_name, drv_name, init_fn, pm_control_fn, \ argument
182 static struct device_config _CONCAT(__config_, dev_name) __used \
188 static struct device _CONCAT(__device_, dev_name) __used \
199 #define DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, cfg_info, \ argument
201 DEVICE_DEFINE(dev_name, drv_name, init_fn, \
[all …]
/AliOS-Things-master/components/linkkit/wifi_provision/dev_bind/
A Dawss_packet.c26 char dev_name[IOTX_DEVICE_NAME_LEN + 1] = { 0 }; in awss_get_dev_info() local
36 HAL_GetDeviceName(dev_name); in awss_get_dev_info()
119 char *pk = NULL, *dev_name = NULL; in awss_build_sign_src() local
128 if (pk == NULL || dev_name == NULL) { in awss_build_sign_src()
133 HAL_GetDeviceName(dev_name); in awss_build_sign_src()
136 dev_name_len = strlen(dev_name); in awss_build_sign_src()
150 HAL_Free(dev_name); in awss_build_sign_src()
158 if (dev_name) { in awss_build_sign_src()
159 HAL_Free(dev_name); in awss_build_sign_src()
167 char dev_name[IOTX_DEVICE_NAME_LEN + 1] = { 0 }; in awss_build_topic() local
[all …]
/AliOS-Things-master/components/ucamera/src/
A Ducamera_device.c25 ucamera_device_t *ucamera_device_init(const char *dev_name) in ucamera_device_init() argument
38 if (dev_name == NULL) in ucamera_device_init()
41 if (dev_name != NULL) { in ucamera_device_init()
43 if (strncasecmp(camera_ctx[i]->name, dev_name, strlen(dev_name)) == 0) { in ucamera_device_init()
61 if (dev_name) { in ucamera_device_init()
62 LOGE(TAG, "%s not available", dev_name); in ucamera_device_init()
A Ducamera_service.c17 int32_t ucamera_service_init(const char *dev_name) in ucamera_service_init() argument
21 ucamera_device_t *dev = ucamera_device_init(dev_name); in ucamera_service_init()
/AliOS-Things-master/components/ai_agent/src/
A Daiagent_engine.c44 aiagent_engine_t *aiagent_engine_init(const char *dev_name) in aiagent_engine_init() argument
56 if (dev_name == NULL) in aiagent_engine_init()
59 if (dev_name != NULL) { in aiagent_engine_init()
61 if (strncasecmp(ai_engine_ctx[i]->name, dev_name, strlen(dev_name)) == 0) { in aiagent_engine_init()
79 if (dev_name) { in aiagent_engine_init()
80 LOGE(TAG, "%s not available", dev_name); in aiagent_engine_init()
/AliOS-Things-master/solutions/rfid_demo/
A Drfid_uart.c53 char dev_name[16] = {0}; in rfid_uart_init() local
56 snprintf(dev_name, sizeof(dev_name), "/dev/ttyUART%d", port_id); in rfid_uart_init()
57 printf("opening device:%s\r\n", dev_name); in rfid_uart_init()
58 fd = open(dev_name, 0); in rfid_uart_init()
A DREADME.md155 char dev_name[16] = {0};
157 snprintf(dev_name, sizeof(dev_name), "/dev/ttyUART%d", port_id);
158 fd = open(dev_name, 0);
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bt_if_enhanced/inc/
A Dbt_if.h74 int bt_stack_config(const unsigned char *dev_name, uint8_t len);
75 int bt_set_local_dev_name(const unsigned char *dev_name, uint8_t len);
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/netmgr/
A Dmodule_netmgr.c44 static char dev_name[256]; variable
220 memset(dev_name, 0, sizeof(dev_name)); in native_netmgr_get_dev()
221 strcpy(dev_name, name); in native_netmgr_get_dev()
685 hdl = netmgr_get_dev(dev_name); in module_netmgr_source_clean()
689 memset(dev_name, 0, sizeof(dev_name)); in module_netmgr_source_clean()
/AliOS-Things-master/components/ucamera/include/
A Ducamera_service.h45 int32_t ucamera_service_init(const char *dev_name);
A Ducamera_device.h48 ucamera_device_t *ucamera_device_init(const char *dev_name);
/AliOS-Things-master/components/drivers/peripheral/flash/src/
A Dmtd.c96 LOG("%s%dKB\t0x%08x\t/dev/%s", name, size, offset, info[i].dev_name);
131 return aos_mtd_get_by_device(g_mtd_info.entries[index].pinfo.dev_name); in aos_mtd_get_by_std_part()
147 return aos_mtd_get_by_device(g_mtd_info.entries[index].pinfo.dev_name); in aos_mtd_get_by_vendor_part()
236 strncpy(g_mtd_info.entries[index].pinfo.dev_name, name, MTD_DEVICE_NAME_MAX); in aos_mtd_register()
270 strncpy(g_mtd_info.entries[index].pinfo.dev_name, name, MTD_DEVICE_NAME_MAX); in aos_mtd_register()
/AliOS-Things-master/components/py_engine/modules/ble/
A Dmodble.h40 char *dev_name; member
A Dbt_host_adapter.c220 param.dev_name = init->dev_name; in py_bt_host_adapter_init()
/AliOS-Things-master/components/drivers/core/base/include/drivers/
A Du_device_info.h53 /*TODO: const*/ char *dev_name; member
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_rawinputjoystick.c289 char dev_name[128]; in RAWINPUT_AddDevice() local
290 UINT name_size = SDL_arraysize(dev_name); in RAWINPUT_AddDevice()
301 CHECK(GetRawInputDeviceInfoA(hDevice, RIDI_DEVICENAME, dev_name, &name_size) != (UINT)-1); in RAWINPUT_AddDevice()
303 CHECK(SDL_strstr(dev_name, "IG_") != NULL); in RAWINPUT_AddDevice()
349 …HANDLE hFile = CreateFileA(dev_name, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE,… in RAWINPUT_AddDevice()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/wireless/bt_host/
A Dbt_host_adapter.h6 char *dev_name; member
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/
A Dbt_host_adapter.h6 char *dev_name; member
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/
A Dwifi_p2p_config.c143 const char *dev_name = "Ameba1234"; // max strlen 32 in cmd_wifi_p2p_auto_go_start() local
155 wifi_p2p_set_dev_name(dev_name); in cmd_wifi_p2p_auto_go_start()
/AliOS-Things-master/components/netmgr/netdev/src/
A Dnetdev_cli.c287 char dev_name[32]; in netdev_ifconfig() local
329 snprintf(dev_name, sizeof(dev_name), "/dev/%s", argv[1]); in netdev_ifconfig()
330 if((fd = open(dev_name, O_RDWR)) < 0) in netdev_ifconfig()
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_node/include/
A Dmesh_node.h85 uint8_t dev_name[DEVICE_NAME_MAX_LENGTH]; member

Completed in 40 milliseconds

12