NUCLEO-F401RE + BlueNRG shield client test (TI Sensortag reading)
Embed:
(wiki syntax)
Show/hide line numbers
list.h
00001 /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** 00002 * File Name : list.h 00003 * Author : AMS - HEA&RF BU 00004 * Version : V1.0.0 00005 * Date : 19-July-2012 00006 * Description : Header file for linked list library. 00007 ******************************************************************************** 00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00014 *******************************************************************************/ 00015 #ifndef _LIST_H_ 00016 #define _LIST_H_ 00017 00018 typedef struct _tListNode { 00019 struct _tListNode * next; 00020 struct _tListNode * prev; 00021 }tListNode, *pListNode; 00022 00023 void list_init_head (tListNode * listHead); 00024 00025 tHalBool list_is_empty (tListNode * listHead); 00026 00027 void list_insert_head (tListNode * listHead, tListNode * node); 00028 00029 void list_insert_tail (tListNode * listHead, tListNode * node); 00030 00031 void list_remove_node (tListNode * node); 00032 00033 void list_remove_head (tListNode * listHead, tListNode ** node ); 00034 00035 void list_remove_tail (tListNode * listHead, tListNode ** node ); 00036 00037 void list_insert_node_after (tListNode * node, tListNode * ref_node); 00038 00039 void list_insert_node_before (tListNode * node, tListNode * ref_node); 00040 00041 int list_get_size (tListNode * listHead); 00042 00043 void list_get_next_node (tListNode * ref_node, tListNode ** node); 00044 00045 void list_get_prev_node (tListNode * ref_node, tListNode ** node); 00046 00047 #endif /* _LIST_H_ */ 00048
Generated on Tue Jul 12 2022 20:44:37 by 1.7.2