資源簡(jiǎn)介
天喻 stm32的mcu+rda5876藍(lán)牙做的銀行支付key,刷卡加密。

代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?“bt.h“
#include?“hci.h“
#include?“manager.h“
#include?“bt_ctrl.h“
#include?“papi_impl.h“
#include?“papi.h“
#include?“sdp.h“
#include?“spp.h“
#include?“rfcomm.h“
#include?“hfp.h“
#include?“platform_config.h“
#include?“driver.h“
#include?“RDABTInterface.h“
#if?!defined(__NOTRACE)
#define?RDA_TRACE_ENABLE
#endif
#if?!defined(RDA_TRACE_ENABLE)
#define?RDA_TRACE(...)
#define?RDA_TRACEBUF(...)
#define?RDA_TRACESTRBUF(...)
#else
#define?RDA_TRACE(...)???????TRACE(__VA_ARGS__)
#define?RDA_TRACEBUF(...)????TRACEBUF(__VA_ARGS__)
#define?RDA_TRACESTRBUF(...)?TRACESTRBUF(__VA_ARGS__)
#endif
extern?int?RDABT_UART_Init?(void);
extern?int?RDABT_Timer_Init?(void);
enum
{
????HCI_UART_STATE_RX_TYPE
????HCI_UART_STATE_RX_HEADER
????HCI_UART_STATE_RX_DATA
};
bt_uart_ptr?bt_uart_ptr_init?=?{NULL?NULL?NULL?NULL};
bt_uart_ptr?*bt_rda_uart?=?&bt_uart_ptr_init;
u16?g_usSppSendPort?=?0xFFFF;
u8?g_ucSppConnectStatus?=?0;
static?u_int8?hci_uart_rx_state;
static?t_DataBuf?*hci_uart_read_buffer;
static?u_int16?hci_uart_pend_length;????????/*?the?length?of?data?have?received?*/
static?u_int16?hci_uart_rx_length;??????????/*?the?length?of?data?need?receive?*/
static?u_int8*?hci_uart_rx_buf;
static?u_int8??hci_uart_rx_head_buf[4];
static?u_int8??hci_uart_rx_type;
static?const?u_int8?hci_uart_head_length[]?=?{4?3?2};
int?RDA_Debug_Print?(int?logLevel?char?*formatString?...)
{
#if?0
????va_list?args;
????char?buff[512];
????AK_DEBUG_OUTPUT?(“RDA_Debug_Print()\r\n“);
????va_start?(args?formatString);
????vsprintf?(buff?formatString?args);
????va_end?(args);
????AK_DEBUG_OUTPUT?(“[%s]:%s:%s\n“?LOGLEVEL[logLevel]?LOGlayer[9]?buff);
#endif
????return?RDABT_NOERROR;
}
#if?defined(RDA_TRACE_ENABLE)
static?u8?Loglayer_Encode(u8?loglayer)
{
????u_int8?i=0;
????if?(loglayer==0)
????{
????????return?0;//error
????}
????while?(loglayer)
????{
????????loglayer=loglayer>>1;
????????i++;
????}
????return?(i-1);
}
#endif
int?RDA_Debug_PrintEX(int?logLevelint?loglayer?char?*formatString?...?)
{
#if?defined(RDA_TRACE_ENABLE)
????const?char?*LOGlayer[]=
????{
????????“pLOGSYSTEM“
????????“pLOGHCI“
????????“pLOGMANAGER“
????????“pLOGL2CAP“
????????“pLOGRFCOMM“
????????“pLOGSDP“
????????“pLOGOBEX“
????????“pLOGTCS“
????????“pLOGA2DP“
????????“pALWAYS“
????};
????const?char*?LOGLEVEL[]=
????{
????????//“pLOGDATA“
????????“pLOGFATAL“
????????“pLOGCRITICAL“
????????“pLOGERROR“
????????“pLOGWARNING“
????????“pLOGNOTICE“
????????“pLOGDEBUG“
????};
????char?buff[256]={0};
????va_list?ap;
????//if(pLOGHCI==loglayer)?
????//????return;?
????//if(pLOGSYSTEM==loglayer)?
????//????return;?
????//if(pLOGMANAGER==loglayer)?
????//????return;?
????//if(pLOGSDP==loglayer)?
????//????return;?
????//if(pLOGRFCOMM==loglayer)?
????//????return;?
??
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????42453??2014-04-05?22:33??stm\BluetoothFunctions.c
?????文件????5424472??2014-03-06?15:29??stm\librdabthost.a
?????文件????????703??2014-03-05?17:24??stm\stack\.svn\entries
?????文件????????206??2013-02-22?14:33??stm\stack\.svn\text-ba
?????文件???????1957??2013-03-14?15:37??stm\stack\.svn\text-ba
?????文件???????1498??2013-02-22?14:33??stm\stack\.svn\text-ba
?????文件???????1318??2014-03-05?17:24??stm\stack\include\.svn\entries
?????文件???????3074??2013-03-14?15:37??stm\stack\include\.svn\text-ba
?????文件??????10476??2013-03-14?15:37??stm\stack\include\.svn\text-ba
?????文件???????2677??2013-02-22?14:33??stm\stack\include\.svn\text-ba
?????文件???????3770??2013-02-22?14:33??stm\stack\include\.svn\text-ba
?????文件???????5078??2013-03-14?15:37??stm\stack\include\.svn\text-ba
?????文件??????47849??2013-03-14?15:37??stm\stack\include\.svn\text-ba
?????文件??????24941??2013-03-14?15:37??stm\stack\include\.svn\text-ba
?????文件???????3074??2013-01-18?22:50??stm\stack\include\assert.h
?????文件??????10476??2013-01-18?22:50??stm\stack\include\ctype.h
?????文件???????2677??2012-07-02?13:57??stm\stack\include\papi_impl.h
?????文件???????3777??2013-04-22?14:55??stm\stack\include\platform_config.h
?????文件???????3770??2013-04-19?09:29??stm\stack\include\platform_config.h.bak
?????文件???????5078??2013-01-18?22:50??stm\stack\include\stdarg.h
?????文件??????47849??2013-01-18?22:50??stm\stack\include\stdio.h
?????文件??????24941??2013-01-18?22:50??stm\stack\include\string.h
?????文件????????206??2012-07-02?17:24??stm\stack\Make.rules
?????文件???????1811??2014-03-06?14:52??stm\stack\Makefile
?????文件?????????96??2014-03-06?15:19??stm\stack\新建?文本文檔.txt
?????文件??????82700??2018-07-13?14:39??stm\STM32_bt\Bin\TY71220_bt_H13D.bin
?????文件???????6956??2015-12-10?17:06??stm\STM32_bt\DebugConfig\Trace_HW13_STM32F103RC_1.0.0.dbgconf
?????文件?????535291??2018-10-26?14:08??stm\STM32_bt\Output\bluetoothfunctions.crf
?????文件???????4474??2018-10-26?14:08??stm\STM32_bt\Output\bluetoothfunctions.d
?????文件?????543668??2018-10-26?14:08??stm\STM32_bt\Output\bluetoothfunctions.o
............此處省略264個(gè)文件信息
評(píng)論
共有 條評(píng)論