Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0237 Datenblatt(PDF) 59 Page - STMicroelectronics

Teilenummer PM0237
Bauteilbeschribung  The main purpose of this document is to provide a developer
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0237 Datenblatt(HTML) 59 Page - STMicroelectronics

Back Button PM0237 Datasheet HTML 55Page - STMicroelectronics PM0237 Datasheet HTML 56Page - STMicroelectronics PM0237 Datasheet HTML 57Page - STMicroelectronics PM0237 Datasheet HTML 58Page - STMicroelectronics PM0237 Datasheet HTML 59Page - STMicroelectronics PM0237 Datasheet HTML 60Page - STMicroelectronics PM0237 Datasheet HTML 61Page - STMicroelectronics PM0237 Datasheet HTML 62Page - STMicroelectronics PM0237 Datasheet HTML 63Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 59 / 88 page
background image
DocID027104 Rev 2
59/88
PM0237
Design an application using BlueNRG, BlueNRG-MS ACI APIs
88
tBleStatus ret;
const char local_name[] =
{AD_TYPE_COMPLETE_LOCAL_NAME,'B','l','u','e','N','R','G' };
/* As scan response data, a proprietary 128bits Service UUID is used.
This 128bits data cannot be inserted within the advertising packet
(ADV_IND) due its length constraints (31 bytes).
*/
/*
AD Type description:
0x11: length
0x06: 128 bits Service UUID type
0x8a,0x97,0xf7,0xc0,0x85,0x06,0x11,0xe3,0xba,0xa7,0x08,0x00,0x20,0x0c,0x9a
,0x66: 128 bits Service UUID
*/
uint8_t ServiceUUID_Scan[18]=
{0x11,0x06,0x8a,0x97,0xf7,0xc0,0x85,0x06,0x11,0xe3,0xba,0xa7,0x08,0x00,0x2
0,0x0c,0x9a,0x66};
/* Enable scan response to be sent when GAP peripheral receives
scan requests from GAP Central performing general
discovery procedure(active scan) */
hci_le_set_scan_resp_data(18 , ServiceUUID_Scan);
/* Put the GAP peripheral in general discoverable mode:
Advertising_Event_Type: ADV_IND (undirected scannable and connectable);
Adv_Interval_Min: 0;
Adv_Interval_Max: 0;
Address_Type: PUBLIC_ADDR (public address: 0x00);
Adv_Filter_Policy: NO_WHITE_LIST_USE (no whit list is used);
Local_Name_Length: 8
Local_Name: BlueNRG;
Service_Uuid_Length: 0 (no service to be advertised);
Service_Uuid_List: NULL;
Slave_Conn_Interval_Min: 0 (Slave connection internal minimum value);
Slave_Conn_Interval_Max: 0 (Slave connection internal maximum
value).
*/
ret = aci_gap_set_discoverable(ADV_IND, 0, 0, PUBLIC_ADDR,
NO_WHITE_LIST_USE,sizeof(local_name), local_name, 0, NULL, 0, 0);
if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")}
} /* end GAP_Peripheral_Make_Discoverable() */
/* GAP Central: start general discovery procedure to discover the GAP
peripheral device in discoverable mode
*/
void GAP_Central_General_Discovery_Procedure(void )
{
tBleStatus ret;



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com