~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to tools/csr.h

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  BlueZ - Bluetooth protocol stack for Linux
4
4
 *
5
 
 *  Copyright (C) 2003-2009  Marcel Holtmann <marcel@holtmann.org>
 
5
 *  Copyright (C) 2003-2010  Marcel Holtmann <marcel@holtmann.org>
6
6
 *
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
22
22
 */
23
23
 
24
24
#include <stdint.h>
 
25
#include <termios.h>
25
26
 
26
27
#define CSR_VARID_PS_CLR_ALL                    0x000b  /* valueless */
27
28
#define CSR_VARID_PS_FACTORY_SET                0x000c  /* valueless */
519
520
int csr_write_usb(uint16_t varid, uint8_t *value, uint16_t length);
520
521
void csr_close_usb(void);
521
522
 
522
 
int csr_open_bcsp(char *device);
 
523
int csr_open_bcsp(char *device, speed_t bcsp_rate);
523
524
int csr_read_bcsp(uint16_t varid, uint8_t *value, uint16_t length);
524
525
int csr_write_bcsp(uint16_t varid, uint8_t *value, uint16_t length);
525
526
void csr_close_bcsp(void);