数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PM0237 数据表(PDF) 53 Page - STMicroelectronics

部件名 PM0237
功能描述  The main purpose of this document is to provide a developer
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0237 数据表(HTML) 53 Page - STMicroelectronics

Back Button PM0237 Datasheet HTML 49Page - STMicroelectronics PM0237 Datasheet HTML 50Page - STMicroelectronics PM0237 Datasheet HTML 51Page - STMicroelectronics PM0237 Datasheet HTML 52Page - STMicroelectronics PM0237 Datasheet HTML 53Page - STMicroelectronics PM0237 Datasheet HTML 54Page - STMicroelectronics PM0237 Datasheet HTML 55Page - STMicroelectronics PM0237 Datasheet HTML 56Page - STMicroelectronics PM0237 Datasheet HTML 57Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 53 / 88 page
background image
DocID027104 Rev 2
53/88
PM0237
Design an application using BlueNRG, BlueNRG-MS ACI APIs
88
const uint8_t charUuid_2[16] =
{0x66,0x9a,0x0c,0x20,0x00,0x08,0x96,0x9e,0xe2,0x11,0x9e,0xb1,0xe2,0xf2,0x7
3,0xd9};
/* Add the service with service_uuid
128bits UUID to the GATT server
database. The service handle ServHandle is returned
*/
ret = aci_gatt_add_serv(UUID_TYPE_128, service_uuid, PRIMARY_SERVICE, 7,
&ServHandle);
if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")}
/* Add the characteristic with charUuid_1 128bits UUID to the service
ServHandle.
This characteristic has 20 as Maximum length of the characteristic value,
Notify properties(CHAR_PROP_NOTIFY), no security
permissions(ATTR_PERMISSION_NONE), no GATT event mask (0), 16 as key
encryption size, and variable-length characteristic (1).
The characteristic handle (CharHandle_1) is returned.
*/
ret =
aci_gatt_add_char(ServHandle, UUID_TYPE_128, charUuid_1, 20,
CHAR_PROP_NOTIFY, ATTR_PERMISSION_NONE, 0,16, 1, &CharHandle_1);
if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")}
/* Add the characteristic with charUuid_2 128bits UUID to the service
ServHandle.This characteristic has 20 as Maximum length of the
characteristic value, Read, Write and write without response properties, no
security permissions(ATTR_PERMISSION_NONE), notify application when
attribute is written (GATT_NOTIFY_ATTRIBUTE_WRITE) as GATT event mask , 16
as key encryption size, and variable-length characteristic (1). The
characteristic handle (CharHandle_2) is returned.
*/
ret =
aci_gatt_add_char(ServHandle, UUID_TYPE_128, charUuid_2, 20,
CHAR_PROP_WRITE|CHAR_PROP_WRITE_WITHOUT_RESP, ATTR_PERMISSION_NONE,
GATT_NOTIFY_ATTRIBUTE_WRITE,16, 1, &CharHandle_2);
if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")}
return ret ;
}/* end Add_Server_Services_Characteristics() */



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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