Lines Matching refs:baud
183 uint16_t baud;
522 ** Description This function convert USERIAL baud to line speed.
529 extern uint32_t USERIAL_GetLineSpeed(uint8_t baud) {
530 return (baud <= USERIAL_BAUD_4M) ? userial_baud_tbl[baud - USERIAL_BAUD_300]
538 ** Description This function convert line speed to USERIAL baud.
832 ** Description helper function converts USERIAL baud rates into TCIO
833 *conforming baud rates
838 ** FALSE - unsupported baud rate, default of 115200 is used
841 bool userial_to_tcio_baud(uint8_t cfg_baud, uint32_t* baud) {
843 *baud = B600;
845 *baud = B1200;
847 *baud = B9600;
849 *baud = B19200;
851 *baud = B57600;
853 *baud = B115200 | CBAUDEX;
855 *baud = B230400;
857 *baud = B460800;
859 *baud = B921600;
861 *baud = B1000000;
863 *baud = B2000000;
865 *baud = B3000000;
867 *baud = B4000000;
869 ALOGE("userial_to_tcio_baud: unsupported baud idx %i", cfg_baud);
870 *baud = B115200;
918 uint32_t baud = 0;
983 if (!userial_to_tcio_baud(p_cfg->baud, &baud)) goto done_open;
1050 cfsetospeed(&termios, baud);
1051 cfsetispeed(&termios, baud);
1243 void userial_change_rate(uint8_t baud) {
1257 cfsetospeed(&termios, baud);
1258 cfsetispeed(&termios, baud);
1273 /* change baud rate in settings - leave everything else the same */
1274 linux_cb.open_cfg.baud = baud;
1277 (unsigned int)USERIAL_GetLineSpeed(baud));
1279 (unsigned int)USERIAL_GetLineSpeed(baud));
1283 fprintf(stderr, "userial_change_rate(): changeing baud rate via TCIO \n");
1284 ALOGI("userial_change_rate: (): changeing baud rate via TCIO \n");
1285 /* change baud rate in settings - leave everything else the same */
1286 linux_cb.open_cfg.baud = baud;
1287 if (!userial_to_tcio_baud(linux_cb.open_cfg.baud, &tcio_baud)) return;
1291 /* get current settings. they should be fine besides baud rate we want to
1348 "baud%i\n",
1349 port, p_data->baud);
1351 userial_change_rate(p_data->baud);