bcharge_libusb_1_0.cc File Reference

Talk to the Blackberry just enough to change the Max Power to 500mA. More...

#include <libusb.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string>
#include <barry/common.h>
#include "i18n.h"
Include dependency graph for bcharge_libusb_1_0.cc:

Go to the source code of this file.


Detailed Description

Talk to the Blackberry just enough to change the Max Power to 500mA.

Cycles through all devices attached to USB, attempting to set all matching Blackberry devices to charge.

This file is part of the Barry project:

http://www.netdirect.ca/software/packages/barry http://sourceforge.net/projects/barry

Compile with the following command (needs libusb 1.0):

g++ -o bcharge bcharge.cc -I/usr/include/libusb -lusb-1.0

Definition in file bcharge_libusb_1_0.cc.