/AliOS-Things-master/components/drivers/peripheral/uart/example/ |
A D | uart_example.c | 38 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 D | awss_registrar.c | 144 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 D | awss_enrollee.c | 38 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 D | awss_enrollee.h | 42 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 D | bt_device.h | 147 #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 D | awss_packet.c | 26 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 D | ucamera_device.c | 25 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 D | ucamera_service.c | 17 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 D | aiagent_engine.c | 44 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 D | rfid_uart.c | 53 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 D | README.md | 155 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 D | bt_if.h | 74 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 D | module_netmgr.c | 44 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 D | ucamera_service.h | 45 int32_t ucamera_service_init(const char *dev_name);
|
A D | ucamera_device.h | 48 ucamera_device_t *ucamera_device_init(const char *dev_name);
|
/AliOS-Things-master/components/drivers/peripheral/flash/src/ |
A D | mtd.c | 96 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 D | modble.h | 40 char *dev_name; member
|
A D | bt_host_adapter.c | 220 param.dev_name = init->dev_name; in py_bt_host_adapter_init()
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/ |
A D | u_device_info.h | 53 /*TODO: const*/ char *dev_name; member
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_rawinputjoystick.c | 289 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 D | bt_host_adapter.h | 6 char *dev_name; member
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | bt_host_adapter.h | 6 char *dev_name; member
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/ |
A D | wifi_p2p_config.c | 143 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 D | netdev_cli.c | 287 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 D | mesh_node.h | 85 uint8_t dev_name[DEVICE_NAME_MAX_LENGTH]; member
|