MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / init_serial_struct

Function init_serial_struct

lib/termios.c:849–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847----------------------------------------------------------*/
848
849static BOOL init_serial_struct(struct serial_struct *sstruct)
850{
851 ENTER("init_serial_struct");
852
853 /*
854 FIXME
855
856 This needs to use inb() to read the actual baud_base
857 and divisor from the UART registers. Question is how
858 far do we take this?
859
860 */
861
862 sstruct->custom_divisor = 0;
863 sstruct->baud_base = 115200;
864
865 /* not currently used check values before using */
866
867 /* unsigned short */
868
869 sstruct->close_delay = 0;
870 sstruct->closing_wait = 0;
871 sstruct->iomem_reg_shift = 0;
872
873 /* int */
874
875 sstruct->type = 0;
876 sstruct->line = 0;
877 sstruct->irq = 0;
878 sstruct->flags = 0;
879 sstruct->xmit_fifo_size = 0;
880 sstruct->hub6 = 0;
881
882 /* unsigned int */
883
884 sstruct->port = 0;
885 sstruct->port_high = 0;
886
887 /* char */
888
889 sstruct->io_type = 0;
890
891 /* unsigned char * */
892
893 sstruct->iomem_base = NULL;
894
895 LEAVE("init_serial_struct");
896 return TRUE;
897
898}
899/*----------------------------------------------------------
900init_termios()
901

Callers 1

win32_serial_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected