Home
last modified time | relevance | path

Searched refs:parity (Results 1 – 25 of 65) sorted by relevance

123

/AliOS-Things-master/components/mbmaster/src/physical/
A Dserial.c18 uint8_t data_width, mb_parity_t parity) in mb_serial_init() argument
42 uart_dev.config.parity = parity; in mb_serial_init()
A Dserial.h12 …t(mb_handler_t *handler, uint8_t port, uint32_t baud_rate, uint8_t data_width, mb_parity_t parity);
/AliOS-Things-master/components/py_engine/tests/wipy/
A Duart.py34 uart.init(baudrate=9600, stop=2, parity=UART.EVEN, pins=uart_pins[uart_id][1])
35 uart.init(baudrate=115200, parity=UART.ODD, stop=0, pins=uart_pins[uart_id][0])
120 UART(0, 9600, parity=None, pins=("GP12", "GP13", "GP7"))
125 UART(0, 9600, parity=UART.ODD, pins=("GP12", "GP7"))
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_uart.c66 _parity_name[self->dev.config.parity], self->dev.config.stop_bits, in machine_uart_print()
163 dev->config.parity = NO_PARITY; in machine_uart_init_helper()
165 mp_int_t parity = mp_obj_get_int(args[ARG_parity].u_obj); in machine_uart_init_helper() local
166 if (parity & 1) { in machine_uart_init_helper()
167 dev->config.parity = ODD_PARITY; in machine_uart_init_helper()
169 dev->config.parity = EVEN_PARITY; in machine_uart_init_helper()
225 self->dev.config.parity = NO_PARITY; in machine_uart_make_new()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_uart.c85 _parity_name[self->dev.config.parity], self->dev.config.stop_bits, in machine_uart_print()
166 dev->config.parity = NO_PARITY; in machine_uart_init_helper()
168 mp_int_t parity = mp_obj_get_int(args[ARG_parity].u_obj); in machine_uart_init_helper() local
169 if (parity & 1) { in machine_uart_init_helper()
170 dev->config.parity = ODD_PARITY; in machine_uart_init_helper()
172 dev->config.parity = EVEN_PARITY; in machine_uart_init_helper()
225 self->dev.config.parity = NO_PARITY; in machine_uart_make_new()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_uart.c85 _parity_name[self->dev.config.parity], self->dev.config.stop_bits, in machine_uart_print()
166 dev->config.parity = NO_PARITY; in machine_uart_init_helper()
168 mp_int_t parity = mp_obj_get_int(args[ARG_parity].u_obj); in machine_uart_init_helper() local
169 if (parity & 1) { in machine_uart_init_helper()
170 dev->config.parity = ODD_PARITY; in machine_uart_init_helper()
172 dev->config.parity = EVEN_PARITY; in machine_uart_init_helper()
225 self->dev.config.parity = NO_PARITY; in machine_uart_make_new()
/AliOS-Things-master/components/mbmaster/src/api/
A Dmbm.c11 …mb_handler_t **req_handler, uint8_t port, uint32_t baud_rate, mb_parity_t parity, uint32_t timeout) in mbmaster_rtu_init() argument
21 status = mb_serial_init(handler, port, baud_rate, 8, parity); in mbmaster_rtu_init()
/AliOS-Things-master/components/py_engine/modules/modbus/
A Dmodbus.c31 mb_parity_t parity = MB_PAR_NONE; in mp_modbus_init() local
42 parity = mp_obj_get_int(args[2]); in mp_modbus_init()
46 parity = mp_obj_get_int(args[2]); in mp_modbus_init()
55 if (parity != MB_PAR_NONE && parity != MB_PAR_ODD && parity != MB_PAR_EVEN) { in mp_modbus_init()
60 mp_int_t status = mbmaster_rtu_init(&mb_handler, port, baud_rate, parity, timeout); in mp_modbus_init()
/AliOS-Things-master/components/drivers/peripheral/uart/include/aos/
A Duart.h58 …s_uart_get_with_attr(aos_uart_ref_t *ref, uint32_t id, uint32_t baudrate, aos_uart_parity_t parity) in aos_uart_get_with_attr() argument
84 switch (parity) { in aos_uart_get_with_attr()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal_ext/
A Dlog_uart_api.h70 int32_t log_uart_init(log_uart_t *obj, int baudrate, int data_bits, SerialParity parity, int stop_b…
104 void log_uart_format(log_uart_t *obj, int data_bits, SerialParity parity, int stop_bits);
/AliOS-Things-master/components/py_engine/engine/extmod/btstack/
A Dbtstack_hci_uart.c106 STATIC int btstack_uart_set_parity(int parity) { in btstack_uart_set_parity() argument
107 (void)parity; in btstack_uart_set_parity()
/AliOS-Things-master/components/ble_host/bt_host/host/
A Drfcomm_internal.h116 #define BT_RFCOMM_SET_LINE_SETTINGS(data, stop, parity) ((data & 0x3) | \ argument
118 ((parity & 0x7) << 3))
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Dtty_csi.c19 csi_uart_parity_t parity; in set_format() local
46 parity = (mode & PARODD) ? UART_PARITY_ODD : UART_PARITY_EVEN; in set_format()
48 parity = UART_PARITY_NONE; in set_format()
50 r = csi_uart_format(&tty_csi->csi_uart, data_bits, parity, stop_bits); in set_format()
/AliOS-Things-master/hardware/board/haas200/startup/
A Dboard.c17 uart_0.config.parity = NO_PARITY; in board_stduart_init()
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/hal/
A Dhal_uart.h41 int hal_uart_config(uint32_t port, uint32_t baud, uint32_t bits, uint32_t stop, uint32_t parity, ui…
A Dhal_uart.c55 int hal_uart_config(uint32_t port, uint32_t baudrate, uint32_t bits, uint32_t stop, uint32_t parity in hal_uart_config() argument
/AliOS-Things-master/components/py_engine/tests/pyb/
A Duart.py13 uart = UART(1, 9600, bits=8, parity=None, stop=1)
/AliOS-Things-master/hardware/chip/smarth_rv64/include/
A Ddrv_usart.h218 usart_parity_e parity,
333 int32_t csi_usart_config_parity(usart_handle_t handle, usart_parity_e parity);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/src/
A Dbt_uart_bridge.c329 void bt_uart_bridge_set(uint32_t baudrate_0, uint32_t baudrate_1, uint8_t parity, uint8_t debug) in bt_uart_bridge_set() argument
335 uart_parity = parity; in bt_uart_bridge_set()
/AliOS-Things-master/components/csi/csi1/include/drv/
A Dspu_usart.h218 usart_parity_e parity,
333 int32_t drv_spu_usart_config_parity(usart_handle_t handle, usart_parity_e parity);
A Dusart.h218 usart_parity_e parity,
333 int32_t csi_usart_config_parity(usart_handle_t handle, usart_parity_e parity);
A Dusi_usart.h218 usart_parity_e parity,
333 int32_t drv_usi_usart_config_parity(usart_handle_t handle, usart_parity_e parity);
/AliOS-Things-master/hardware/chip/haas1000/csi/
A Duart.c148 cfg.parity = HAL_UART_PARITY_ODD; in tty_uart_startup()
150 cfg.parity = HAL_UART_PARITY_EVEN; in tty_uart_startup()
152 cfg.parity = HAL_UART_PARITY_NONE; in tty_uart_startup()
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Duart.c234 if(uart->config.parity ==NO_PARITY){ in hal_uart_init()
236 }else if(uart->config.parity == ODD_PARITY){ in hal_uart_init()
239 }else if(uart->config.parity == EVEN_PARITY){ in hal_uart_init()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal/
A Dserial_api.h122 void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_bits);

Completed in 37 milliseconds

123