X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Fshimmer%2Fchips%2Fbluetooth%2FBluetooth.nc;h=6dbf75eb148355e1f23cd1ef1b5adbfd33383a88;hp=f03f0a5d1b1fcea90112d97485862193caa86d17;hb=d3e972cf3bcc1902d0b33276e72983573fadd94f;hpb=108491d3f8ff0981434b4ae98a5f89f6b320a662 diff --git a/tos/platforms/shimmer/chips/bluetooth/Bluetooth.nc b/tos/platforms/shimmer/chips/bluetooth/Bluetooth.nc index f03f0a5d..6dbf75eb 100644 --- a/tos/platforms/shimmer/chips/bluetooth/Bluetooth.nc +++ b/tos/platforms/shimmer/chips/bluetooth/Bluetooth.nc @@ -71,7 +71,17 @@ interface Bluetooth { command void setServiceName(char * name); // max 16 chars command void setDeviceClass(char * class); // max 4 chars (hex word) command void disableRemoteConfig(bool disableConfig); - command void setBaudrate(char * rate_factor); // max 4 chars, must be integer + /* + * rate_factor is baudrate * 0.004096, e.g. to set 115200, pass in "472" + */ + command void setRawBaudrate(char * rate_factor); // max 4 chars, must be integer + + /* + * provide one of the following as a string argument: + * { 1200, 2400, 4800, 9600, 19.2, 38.4, 57.6, 115K, 230K, 460K, 921K } + */ + command void setBaudrate(char * new_baud); + /* save power by minimising time Inquiry/Page scanning, call these commands from */ /* your StdControl.init() - module reset necessary for changes to take effect */ command void setPagingTime(char * hexval_time); // max 4 chars (hex word)