Example for Bluetooth low energy interface
Dependencies: mbed HC_SR04_Ultrasonic_Library
BlueNRG_F4_BSP/inc/list.h@3:829f081fde15, 2015-05-19 (annotated)
- Committer:
- julientiron
- Date:
- Tue May 19 20:42:25 2015 +0000
- Revision:
- 3:829f081fde15
- Parent:
- 0:3d641e170a74
hihi;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
julientiron | 0:3d641e170a74 | 1 | /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** |
julientiron | 0:3d641e170a74 | 2 | * File Name : list.h |
julientiron | 0:3d641e170a74 | 3 | * Author : AMS - HEA&RF BU |
julientiron | 0:3d641e170a74 | 4 | * Version : V1.0.0 |
julientiron | 0:3d641e170a74 | 5 | * Date : 19-July-2012 |
julientiron | 0:3d641e170a74 | 6 | * Description : Header file for linked list library. |
julientiron | 0:3d641e170a74 | 7 | ******************************************************************************** |
julientiron | 0:3d641e170a74 | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
julientiron | 0:3d641e170a74 | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
julientiron | 0:3d641e170a74 | 10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
julientiron | 0:3d641e170a74 | 11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
julientiron | 0:3d641e170a74 | 12 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
julientiron | 0:3d641e170a74 | 13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
julientiron | 0:3d641e170a74 | 14 | *******************************************************************************/ |
julientiron | 0:3d641e170a74 | 15 | #ifndef _LIST_H_ |
julientiron | 0:3d641e170a74 | 16 | #define _LIST_H_ |
julientiron | 0:3d641e170a74 | 17 | |
julientiron | 0:3d641e170a74 | 18 | typedef struct _tListNode { |
julientiron | 0:3d641e170a74 | 19 | struct _tListNode * next; |
julientiron | 0:3d641e170a74 | 20 | struct _tListNode * prev; |
julientiron | 0:3d641e170a74 | 21 | }tListNode, *pListNode; |
julientiron | 0:3d641e170a74 | 22 | |
julientiron | 0:3d641e170a74 | 23 | void list_init_head (tListNode * listHead); |
julientiron | 0:3d641e170a74 | 24 | |
julientiron | 0:3d641e170a74 | 25 | tHalBool list_is_empty (tListNode * listHead); |
julientiron | 0:3d641e170a74 | 26 | |
julientiron | 0:3d641e170a74 | 27 | void list_insert_head (tListNode * listHead, tListNode * node); |
julientiron | 0:3d641e170a74 | 28 | |
julientiron | 0:3d641e170a74 | 29 | void list_insert_tail (tListNode * listHead, tListNode * node); |
julientiron | 0:3d641e170a74 | 30 | |
julientiron | 0:3d641e170a74 | 31 | void list_remove_node (tListNode * node); |
julientiron | 0:3d641e170a74 | 32 | |
julientiron | 0:3d641e170a74 | 33 | void list_remove_head (tListNode * listHead, tListNode ** node ); |
julientiron | 0:3d641e170a74 | 34 | |
julientiron | 0:3d641e170a74 | 35 | void list_remove_tail (tListNode * listHead, tListNode ** node ); |
julientiron | 0:3d641e170a74 | 36 | |
julientiron | 0:3d641e170a74 | 37 | void list_insert_node_after (tListNode * node, tListNode * ref_node); |
julientiron | 0:3d641e170a74 | 38 | |
julientiron | 0:3d641e170a74 | 39 | void list_insert_node_before (tListNode * node, tListNode * ref_node); |
julientiron | 0:3d641e170a74 | 40 | |
julientiron | 0:3d641e170a74 | 41 | int list_get_size (tListNode * listHead); |
julientiron | 0:3d641e170a74 | 42 | |
julientiron | 0:3d641e170a74 | 43 | void list_get_next_node (tListNode * ref_node, tListNode ** node); |
julientiron | 0:3d641e170a74 | 44 | |
julientiron | 0:3d641e170a74 | 45 | void list_get_prev_node (tListNode * ref_node, tListNode ** node); |
julientiron | 0:3d641e170a74 | 46 | |
julientiron | 0:3d641e170a74 | 47 | #endif /* _LIST_H_ */ |