BlueNRG-MS pack for STM32CubeMX: utils/ble_list.h Source File

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
ble_list.h
Go to the documentation of this file.
1 /******************** (C) COPYRIGHT 2012 STMicroelectronics ********************
2 * File Name : ble_list.h
3 * Author : AMS - HEA&RF BU
4 * Version : V1.0.0
5 * Date : 19-July-2012
6 * Description : Header file for linked list library.
7 ********************************************************************************
8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14 *******************************************************************************/
15 #ifndef __BLE_LIST_H_
16 #define __BLE_LIST_H_
17 
18 #include <stdint.h>
19 
20 typedef struct _tListNode {
21  struct _tListNode * next;
22  struct _tListNode * prev;
24 
25 void list_init_head (tListNode * listHead);
26 
27 uint8_t list_is_empty (tListNode * listHead);
28 
29 void list_insert_head (tListNode * listHead, tListNode * node);
30 
31 void list_insert_tail (tListNode * listHead, tListNode * node);
32 
33 void list_remove_node (tListNode * node);
34 
35 void list_remove_head (tListNode * listHead, tListNode ** node );
36 
37 void list_remove_tail (tListNode * listHead, tListNode ** node );
38 
39 void list_insert_node_after (tListNode * node, tListNode * ref_node);
40 
41 void list_insert_node_before (tListNode * node, tListNode * ref_node);
42 
43 int list_get_size (tListNode * listHead);
44 
45 void list_get_next_node (tListNode * ref_node, tListNode ** node);
46 
47 void list_get_prev_node (tListNode * ref_node, tListNode ** node);
48 
49 #endif /* __BLE_LIST_H_ */
void list_remove_node(tListNode *node)
Definition: ble_list.c:83
struct _tListNode tListNode
struct _tListNode * next
Definition: ble_list.h:21
struct _tListNode * prev
Definition: ble_list.h:22
int list_get_size(tListNode *listHead)
Definition: ble_list.c:151
void list_remove_tail(tListNode *listHead, tListNode **node)
Definition: ble_list.c:109
void list_init_head(tListNode *listHead)
Definition: ble_list.c:27
void list_remove_head(tListNode *listHead, tListNode **node)
Definition: ble_list.c:95
void list_get_next_node(tListNode *ref_node, tListNode **node)
Definition: ble_list.c:172
Definition: ble_list.h:20
uint8_t list_is_empty(tListNode *listHead)
Definition: ble_list.c:33
void list_get_prev_node(tListNode *ref_node, tListNode **node)
Definition: ble_list.c:183
void list_insert_node_before(tListNode *node, tListNode *ref_node)
Definition: ble_list.c:137
void list_insert_head(tListNode *listHead, tListNode *node)
Definition: ble_list.c:55
void list_insert_tail(tListNode *listHead, tListNode *node)
Definition: ble_list.c:69
struct _tListNode * pListNode
void list_insert_node_after(tListNode *node, tListNode *ref_node)
Definition: ble_list.c:123
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13