2005-03-23 17:19:13

by # Björn Specht #

[permalink] [raw]
Subject: [Bluez-devel] some basic questions

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


2005-03-23 18:36:58

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] some basic questions

Hi Bjoern,

> 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.

> 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