Skip to contentSkip to conversation

some basic questions

Bluez-devel # Björn Specht # 2 participants 2 messages Mar 23, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

what is the baswap - function used for? I had a look at the bluetooth.c and=
it is just changing the order of the MAC-address.

Is there some documentation available where I can read about the functions = and why/what they are used for?

What is the difference between the ba2str and batostr functions? Why are th= ere 2 functions implemented?

Thanks a lot. A link or something else to read about this stuff would be ap= preciated as well!

Bj=F6rn

-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Bjoern,

Quoted 3 lines

what is the baswap - function used for? I had a look at the bluetooth.c and it is just changing the order of the MAC-address.

Is there some documentation available where I can read about the functions and why/what they are used for?

the BD_ADDR is transmitting in reverse order.

Quoted 1 line

What is the difference between the ba2str and batostr functions? Why are there 2 functions implemented?

The *2str function do the baswap() and operate on a buffer. The *tostr functions allocate a buffer and don't do the baswap().

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel