DA1458x Software Platform Reference
© 2016 Dialog Semiconductor
7 System Software ......................................................................................................................... 42
7.1 Main Loop and Sleep Modes .............................................................................................. 42
7.1.1 Sleep Modes ........................................................................................................ 42
7.1.2 Wake-Up Events .................................................................................................. 42
7.1.3 Main Loop ............................................................................................................ 43
7.2 System API ......................................................................................................................... 44
7.2.1 Main Loop Callbacks ........................................................................................... 44
7.2.2 Sleep API ............................................................................................................. 45
7.2.3 Serial Logging Interface API ................................................................................ 46
7.2.4 BLE Statistics API ................................................................................................ 46
7.2.5 Development Mode API ....................................................................................... 46
7.2.5.1 GPIO Reservation ............................................................................ 46
7.2.5.2 Assert, NMI and Hard Fault Handlers.............................................. 47
7.2.6 Advanced Features API ....................................................................................... 47
7.2.6.1 Wake-Up and External Processor Configuration ............................. 47
7.2.6.2 True Random Number Generator (TRNG) ...................................... 47
7.2.6.3 Boost Output Voltage (DCDC_VBAT3V) ......................................... 47
7.2.6.4 Near Field Control ............................................................................ 48
7.2.6.5 AES Crypto ...................................................................................... 48
7.2.6.6 Co-Existence ................................................................................... 48
8 Application Software ................................................................................................................... 49
8.1 Overview ............................................................................................................................. 49
8.2 API ....................................................................................................................................... 49
8.2.1 Message API ....................................................................................................... 50
8.2.2 Mid Layer API ...................................................................................................... 50
8.2.3 Easy API .............................................................................................................. 50
8.2.4 app_<profile> API ................................................................................................ 51
8.2.5 App Entry Point API ............................................................................................. 51
8.2.6 User Callback API ................................................................................................ 51
8.2.7 Default Handlers .................................................................................................. 52
9 Memory Organization .................................................................................................................. 53
9.1 Overview ............................................................................................................................. 53
9.2 Memory Map ....................................................................................................................... 53
9.3 ARM Scatter File ................................................................................................................. 55
10 Peripheral Drivers ....................................................................................................................... 56
10.1 Overview ............................................................................................................................. 56
10.2 UART................................................................................................................................... 56
10.2.1 How to Use this Driver ......................................................................................... 56
10.2.2 Initialization and Configuration ............................................................................ 57
10.2.3 Function Reference ............................................................................................. 58
10.2.3.1 uart_init ............................................................................................ 58
10.2.3.2 uart_flow_on .................................................................................... 58
10.2.3.3 uart_flow_off .................................................................................... 59
10.2.3.4 uart_finish_transfers ........................................................................ 59
10.2.3.5 uart_write ......................................................................................... 59
10.2.3.6 uart_read ......................................................................................... 59
10.2.4 Definitions ............................................................................................................ 60
评论0