전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

PM0237 데이터시트(PDF) 42 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
Logo STMICROELECTRONICS - STMicroelectronics

PM0237 데이터시트(HTML) 42 Page - STMicroelectronics

Back Button PM0237 Datasheet HTML 38Page - STMicroelectronics PM0237 Datasheet HTML 39Page - STMicroelectronics PM0237 Datasheet HTML 40Page - STMicroelectronics PM0237 Datasheet HTML 41Page - STMicroelectronics PM0237 Datasheet HTML 42Page - STMicroelectronics PM0237 Datasheet HTML 43Page - STMicroelectronics PM0237 Datasheet HTML 44Page - STMicroelectronics PM0237 Datasheet HTML 45Page - STMicroelectronics PM0237 Datasheet HTML 46Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 88 page
background image
Design an application using BlueNRG, BlueNRG-MS ACI APIs
PM0237
42/88
DocID027104 Rev 2
3.1
Initialization phase and main application loop
The following main steps are required for properly configure the selected external
microcontroller and the SPI communication with a BlueNRG or BlueNRG-MS device.
1.
Configure selected BlueNRG platform
2.
Configure clock, GPIOs and setup low power mode
3.
Initialize the serial communication channel used for I/O communication (debug and
utility information)
4.
Initialize list heads of ready and free hci data packet queues
5.
Init SPI interface for allowing external microcontroller to get access to the BlueNRG
features properly
6.
Reset the BlueNRG, BlueNRG-MS network coprocessor
7.
Configure BlueNRG, BlueNRG-MS public address (if public address is used)
8.
Init BLE NRG GATT layer
9.
Init BLE NRG GAP layer depending on the selected device role
10. Set the proper security I/O capability and authentication requirement (if BLE NRG
security is used)
11. Define the required Services & Characteristics if the device is a GATT server
12. Add a while(1) loop calling the HCI_Process() API and a specific user application
function where user actions/events are processed (advertising, connections, services
and characteristics discovery, notification and related events ).
The following pseudocode example illustrates the required initialization steps:
int main(void)
{
int ret;
/* Setup the STM32L1xx NVIC vector table base address */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, VECTOR_TABLE_BASE_ADDRESS);
/* Configure selected BlueNRG platform */
SdkEvalIdentification();
/* Configure clock */
RCC_Configuration();
/* Init I/O ports */
Init_GPIOs ();
PWR_PVDCmd(DISABLE);
/* Disable FLASH during Sleep
*/
FLASH_SLEEPPowerDownCmd(ENABLE);
/* Enable Ultra low power mode */
PWR_UltraLowPowerCmd(ENABLE);
PWR_FastWakeUpCmd(DISABLE);
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
/* Init timer used for SPI timeouts */
Clock_Init();
/* Configure I/O communication channel:
It requires the void IO_Receive_Data(uint8_t * rx_data, uint16_t
data_size)function where user received data should be processed */



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


링크 URL



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