@@ -179,7 +179,7 @@ RS232_LIB unsigned int rs232_open(struct rs232_port_t *p);
179
179
RS232_LIB unsigned int rs232_port_open (struct rs232_port_t * p );
180
180
RS232_LIB unsigned int rs232_close (struct rs232_port_t * p );
181
181
RS232_LIB unsigned int rs232_flush (struct rs232_port_t * p );
182
- RS232_LIB void rs232_set_device (struct rs232_port_t * p , char * device );
182
+ RS232_LIB void rs232_set_device (struct rs232_port_t * p , const char * device );
183
183
RS232_LIB unsigned int rs232_set_baud (struct rs232_port_t * p , unsigned int baud );
184
184
RS232_LIB unsigned int rs232_set_stop (struct rs232_port_t * p , unsigned int stop );
185
185
RS232_LIB unsigned int rs232_set_data (struct rs232_port_t * p , unsigned int data );
@@ -198,8 +198,8 @@ RS232_LIB unsigned int rs232_get_rts(struct rs232_port_t *p);
198
198
RS232_LIB unsigned int rs232_read (struct rs232_port_t * p , unsigned char * buf , unsigned int buf_len , unsigned int * read_len );
199
199
RS232_LIB unsigned int rs232_read_timeout (struct rs232_port_t * p , unsigned char * buf , unsigned int buf_len , unsigned int * read_len , unsigned int timeout );
200
200
RS232_LIB unsigned int rs232_read_timeout_forced (struct rs232_port_t * p , unsigned char * buf , unsigned int buf_len , unsigned int * read_len , unsigned int timeout );
201
- RS232_LIB unsigned int rs232_write (struct rs232_port_t * p , unsigned char * buf , unsigned int buf_len , unsigned int * write_len );
202
- RS232_LIB unsigned int rs232_write_timeout (struct rs232_port_t * p , unsigned char * buf , unsigned int buf_len , unsigned int * write_len , unsigned int timeout );
201
+ RS232_LIB unsigned int rs232_write (struct rs232_port_t * p , const unsigned char * buf , unsigned int buf_len , unsigned int * write_len );
202
+ RS232_LIB unsigned int rs232_write_timeout (struct rs232_port_t * p , const unsigned char * buf , unsigned int buf_len , unsigned int * write_len , unsigned int timeout );
203
203
RS232_LIB unsigned int rs232_in_qeue (struct rs232_port_t * p , unsigned int * in_bytes );
204
204
RS232_LIB void rs232_in_qeue_clear (struct rs232_port_t * p );
205
205
RS232_LIB const char * rs232_to_string (struct rs232_port_t * p );
0 commit comments