26 #include <bluetooth/bluetooth.h>
27 #include <bluetooth/rfcomm.h>
29 #include <sys/ioctl.h>
30 #include <bluetooth/hci.h>
33 #define NONVOL_BT_DATA "settings/nonvolbt"
36 #define MAX_DEV_TABLE_ENTRIES 30
37 #define BT_CH_OFFSET 2
38 #define MAX_NAME_SIZE 32
39 #define MAX_BT_NAME_SIZE 248
41 #define MAX_BUNDLE_ID_SIZE 24
42 #define MAX_BUNDLE_SEED_ID_SIZE 11
148 struct sockaddr_rc loc_addr;
149 struct sockaddr_rc rem_addr;
159 struct timeval Cmdtv;
265 char BtName[vmBRICKNAMESIZE];
UWORD cBtReadCh3(UBYTE *pBuf, UWORD Length)
UBYTE cBtGetConnListEntry(UBYTE Item, UBYTE *pName, SBYTE Length, UBYTE *pType)
UWORD cBtSetBundleId(UBYTE *pId)
UBYTE BtGetOnOff(UBYTE *On)
UBYTE cBtSetPin(UBYTE *pPin)
UWORD cBtReadCh5(UBYTE *pBuf, UWORD Length)
UBYTE cBtI2cBufReady(void)
UWORD cBtDevWriteBuf7(UBYTE *pBuf, UWORD Size)
UBYTE cBtGetHciBusyFlag(void)
signed char SBYTE
Basic Type used to symbolise 8 bit signed values.
void cBtGetIncoming(UBYTE *pName, UBYTE *pCod, UBYTE Len)
#define MAX_DEV_TABLE_ENTRIES
void DecodeMode1(UBYTE BufNo)
UWORD cBtDevWriteBuf6(UBYTE *pBuf, UWORD Size)
UWORD cBtReadCh1(UBYTE *pBuf, UWORD Length)
UWORD cBtSetBundleSeedId(UBYTE *pSeedId)
LISTENSOCKET ListenSocket
UWORD cBtReadCh0(UBYTE *pBuf, UWORD Length)
UBYTE cBtSetPasskey(UBYTE Accept)
UWORD cBtReadCh6(UBYTE *pBuf, UWORD Length)
UWORD cBtDevWriteBuf(UBYTE *pBuf, UWORD Size)
UWORD cBtDevWriteBuf2(UBYTE *pBuf, UWORD Size)
UBYTE BtSetOnOff(UBYTE On)
UBYTE cBtGetNoOfConnListEntries(void)
unsigned int ULONG
Basic Type used to symbolise 32 bit unsigned values.
UWORD cBtDevWriteBuf3(UBYTE *pBuf, UWORD Size)
UWORD cBtReadCh4(UBYTE *pBuf, UWORD Length)
UBYTE cBtGetChNo(UBYTE *pName, UBYTE *pChNo)
#define MAX_BUNDLE_ID_SIZE
UBYTE cBtGetDevListEntry(UBYTE Item, SBYTE *pConnected, SBYTE *pType, UBYTE *pName, SBYTE Length)
UBYTE cBtConnect(UBYTE *pName)
void cBtGetId(UBYTE *pId, UBYTE Length)
UWORD cBtDevWriteBuf4(UBYTE *pBuf, UWORD Size)
UBYTE cBtSetName(UBYTE *pName, UBYTE Length)
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
UWORD cBtDevWriteBuf1(UBYTE *pBuf, UWORD Size)
UBYTE cBtGetNoOfSearchListEntries(void)
unsigned short UWORD
Basic Type used to symbolise 16 bit unsigned values.
void cBtSetTrustedDev(UBYTE *pBtAddr, UBYTE *pPin, UBYTE PinSize)
UWORD cBtI2cToBtBuf(UBYTE *pBuf, UWORD Size)
UBYTE cBtDiscChNo(UBYTE ChNo)
UBYTE BtGetVisibility(void)
UBYTE BtGetMode2(UBYTE *pMode2)
UBYTE BtSetVisibility(UBYTE State)
UBYTE BtSetMode2(UBYTE Mode2)
void IncommingConnect(void)
UBYTE cBtGetSearchListEntry(UBYTE Item, SBYTE *pConnected, SBYTE *pType, SBYTE *pParred, UBYTE *pName, SBYTE Length)
UWORD cBtDevWriteBuf5(UBYTE *pBuf, UWORD Size)
UBYTE cBtDisconnect(UBYTE *pName)
UWORD cBtReadCh2(UBYTE *pBuf, UWORD Length)
UBYTE cBtDeleteFavourItem(UBYTE *pName)
UWORD cBtReadCh7(UBYTE *pBuf, UWORD Length)
UBYTE cBtGetNoOfDevListEntries(void)
signed int SLONG
Basic Type used to symbolise 32 bit signed values.
#define MAX_BUNDLE_SEED_ID_SIZE