BLE_BlueNRG for Nucleo board
Dependents: Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_UART
Warning: Deprecated!
Supported drivers and applications can be found at this link.
platform/inc/list.h@0:a948f5f3904c, 2014-12-19 (annotated)
- Committer:
- sjallouli
- Date:
- Fri Dec 19 18:56:07 2014 +0000
- Revision:
- 0:a948f5f3904c
BLE_BlueNRG for Nucleo board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sjallouli | 0:a948f5f3904c | 1 | /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** |
sjallouli | 0:a948f5f3904c | 2 | * File Name : list.h |
sjallouli | 0:a948f5f3904c | 3 | * Author : AMS - HEA&RF BU |
sjallouli | 0:a948f5f3904c | 4 | * Version : V1.0.0 |
sjallouli | 0:a948f5f3904c | 5 | * Date : 19-July-2012 |
sjallouli | 0:a948f5f3904c | 6 | * Description : Header file for linked list library. |
sjallouli | 0:a948f5f3904c | 7 | ******************************************************************************** |
sjallouli | 0:a948f5f3904c | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
sjallouli | 0:a948f5f3904c | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
sjallouli | 0:a948f5f3904c | 10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
sjallouli | 0:a948f5f3904c | 11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
sjallouli | 0:a948f5f3904c | 12 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
sjallouli | 0:a948f5f3904c | 13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
sjallouli | 0:a948f5f3904c | 14 | *******************************************************************************/ |
sjallouli | 0:a948f5f3904c | 15 | #ifndef _LIST_H_ |
sjallouli | 0:a948f5f3904c | 16 | #define _LIST_H_ |
sjallouli | 0:a948f5f3904c | 17 | |
sjallouli | 0:a948f5f3904c | 18 | #include <stdbool.h> |
sjallouli | 0:a948f5f3904c | 19 | #include <stddef.h> |
sjallouli | 0:a948f5f3904c | 20 | |
sjallouli | 0:a948f5f3904c | 21 | typedef struct _tListNode { |
sjallouli | 0:a948f5f3904c | 22 | struct _tListNode * next; |
sjallouli | 0:a948f5f3904c | 23 | struct _tListNode * prev; |
sjallouli | 0:a948f5f3904c | 24 | }tListNode, *pListNode; |
sjallouli | 0:a948f5f3904c | 25 | |
sjallouli | 0:a948f5f3904c | 26 | void list_init_head (tListNode * listHead); |
sjallouli | 0:a948f5f3904c | 27 | |
sjallouli | 0:a948f5f3904c | 28 | bool list_is_empty (tListNode * listHead); |
sjallouli | 0:a948f5f3904c | 29 | |
sjallouli | 0:a948f5f3904c | 30 | void list_insert_head (tListNode * listHead, tListNode * node); |
sjallouli | 0:a948f5f3904c | 31 | |
sjallouli | 0:a948f5f3904c | 32 | void list_insert_tail (tListNode * listHead, tListNode * node); |
sjallouli | 0:a948f5f3904c | 33 | |
sjallouli | 0:a948f5f3904c | 34 | void list_remove_node (tListNode * node); |
sjallouli | 0:a948f5f3904c | 35 | |
sjallouli | 0:a948f5f3904c | 36 | void list_remove_head (tListNode * listHead, tListNode ** node ); |
sjallouli | 0:a948f5f3904c | 37 | |
sjallouli | 0:a948f5f3904c | 38 | void list_remove_tail (tListNode * listHead, tListNode ** node ); |
sjallouli | 0:a948f5f3904c | 39 | |
sjallouli | 0:a948f5f3904c | 40 | void list_insert_node_after (tListNode * node, tListNode * ref_node); |
sjallouli | 0:a948f5f3904c | 41 | |
sjallouli | 0:a948f5f3904c | 42 | void list_insert_node_before (tListNode * node, tListNode * ref_node); |
sjallouli | 0:a948f5f3904c | 43 | |
sjallouli | 0:a948f5f3904c | 44 | int list_get_size (tListNode * listHead); |
sjallouli | 0:a948f5f3904c | 45 | |
sjallouli | 0:a948f5f3904c | 46 | void list_get_next_node (tListNode * ref_node, tListNode ** node); |
sjallouli | 0:a948f5f3904c | 47 | |
sjallouli | 0:a948f5f3904c | 48 | void list_get_prev_node (tListNode * ref_node, tListNode ** node); |
sjallouli | 0:a948f5f3904c | 49 | |
sjallouli | 0:a948f5f3904c | 50 | #endif /* _LIST_H_ */ |
sjallouli | 0:a948f5f3904c | 51 | |
sjallouli | 0:a948f5f3904c | 52 |