STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Macros | Typedefs | Functions
list.h File Reference

Go to the source code of this file.

Data Structures

struct  xLIST_ITEM
 
struct  xMINI_LIST_ITEM
 
struct  xLIST
 

Macros

#define configLIST_VOLATILE
 
#define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE
 
#define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE
 
#define listFIRST_LIST_INTEGRITY_CHECK_VALUE
 
#define listSECOND_LIST_INTEGRITY_CHECK_VALUE
 
#define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE(pxItem)
 
#define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE(pxItem)
 
#define listSET_LIST_INTEGRITY_CHECK_1_VALUE(pxList)
 
#define listSET_LIST_INTEGRITY_CHECK_2_VALUE(pxList)
 
#define listTEST_LIST_ITEM_INTEGRITY(pxItem)
 
#define listTEST_LIST_INTEGRITY(pxList)
 
#define listSET_LIST_ITEM_OWNER(pxListItem, pxOwner)   ( ( pxListItem )->pvOwner = ( void * ) ( pxOwner ) )
 
#define listGET_LIST_ITEM_OWNER(pxListItem)   ( ( pxListItem )->pvOwner )
 
#define listSET_LIST_ITEM_VALUE(pxListItem, xValue)   ( ( pxListItem )->xItemValue = ( xValue ) )
 
#define listGET_LIST_ITEM_VALUE(pxListItem)   ( ( pxListItem )->xItemValue )
 
#define listGET_ITEM_VALUE_OF_HEAD_ENTRY(pxList)   ( ( ( pxList )->xListEnd ).pxNext->xItemValue )
 
#define listGET_HEAD_ENTRY(pxList)   ( ( ( pxList )->xListEnd ).pxNext )
 
#define listGET_NEXT(pxListItem)   ( ( pxListItem )->pxNext )
 
#define listGET_END_MARKER(pxList)   ( ( ListItem_t const * ) ( &( ( pxList )->xListEnd ) ) )
 
#define listLIST_IS_EMPTY(pxList)   ( ( BaseType_t ) ( ( pxList )->uxNumberOfItems == ( UBaseType_t ) 0 ) )
 
#define listCURRENT_LIST_LENGTH(pxList)   ( ( pxList )->uxNumberOfItems )
 
#define listGET_OWNER_OF_NEXT_ENTRY(pxTCB, pxList)
 
#define listGET_OWNER_OF_HEAD_ENTRY(pxList)   ( (&( ( pxList )->xListEnd ))->pxNext->pvOwner )
 
#define listIS_CONTAINED_WITHIN(pxList, pxListItem)   ( ( BaseType_t ) ( ( pxListItem )->pvContainer == ( void * ) ( pxList ) ) )
 
#define listLIST_ITEM_CONTAINER(pxListItem)   ( ( pxListItem )->pvContainer )
 
#define listLIST_IS_INITIALISED(pxList)   ( ( pxList )->xListEnd.xItemValue == portMAX_DELAY )
 

Typedefs

typedef struct xLIST_ITEM ListItem_t
 
typedef struct xMINI_LIST_ITEM MiniListItem_t
 
typedef struct xLIST List_t
 

Functions

void vListInitialise (List_t *const pxList) PRIVILEGED_FUNCTION
 
void vListInitialiseItem (ListItem_t *const pxItem) PRIVILEGED_FUNCTION
 
void vListInsert (List_t *const pxList, ListItem_t *const pxNewListItem) PRIVILEGED_FUNCTION
 
void vListInsertEnd (List_t *const pxList, ListItem_t *const pxNewListItem) PRIVILEGED_FUNCTION
 
UBaseType_t uxListRemove (ListItem_t *const pxItemToRemove) PRIVILEGED_FUNCTION
 

Macro Definition Documentation

#define configLIST_VOLATILE

Definition at line 134 of file list.h.

#define listCURRENT_LIST_LENGTH (   pxList)    ( ( pxList )->uxNumberOfItems )

Definition at line 296 of file list.h.

#define listFIRST_LIST_INTEGRITY_CHECK_VALUE

Definition at line 150 of file list.h.

#define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE

Definition at line 148 of file list.h.

#define listGET_END_MARKER (   pxList)    ( ( ListItem_t const * ) ( &( ( pxList )->xListEnd ) ) )

Definition at line 282 of file list.h.

#define listGET_HEAD_ENTRY (   pxList)    ( ( ( pxList )->xListEnd ).pxNext )

Definition at line 266 of file list.h.

#define listGET_ITEM_VALUE_OF_HEAD_ENTRY (   pxList)    ( ( ( pxList )->xListEnd ).pxNext->xItemValue )

Definition at line 258 of file list.h.

#define listGET_LIST_ITEM_OWNER (   pxListItem)    ( ( pxListItem )->pvOwner )

Definition at line 230 of file list.h.

#define listGET_LIST_ITEM_VALUE (   pxListItem)    ( ( pxListItem )->xItemValue )

Definition at line 249 of file list.h.

#define listGET_NEXT (   pxListItem)    ( ( pxListItem )->pxNext )

Definition at line 274 of file list.h.

#define listGET_OWNER_OF_HEAD_ENTRY (   pxList)    ( (&( ( pxList )->xListEnd ))->pxNext->pvOwner )

Definition at line 348 of file list.h.

#define listGET_OWNER_OF_NEXT_ENTRY (   pxTCB,
  pxList 
)
Value:
{ \
List_t * const pxConstList = ( pxList ); \
/* Increment the index to the next item and return the item, ensuring */ \
/* we don't return the marker used at the end of the list. */ \
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \
{ \
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
} \
( pxTCB ) = ( pxConstList )->pxIndex->pvOwner; \
}
if(LCD_Lock==DISABLE)
Definition: lcd_log.c:249
struct xLIST_ITEM *configLIST_VOLATILE pxNext
Definition: list.h:185
ListItem_t *configLIST_VOLATILE pxIndex
Definition: list.h:209
struct xLIST List_t

Definition at line 318 of file list.h.

#define listIS_CONTAINED_WITHIN (   pxList,
  pxListItem 
)    ( ( BaseType_t ) ( ( pxListItem )->pvContainer == ( void * ) ( pxList ) ) )

Definition at line 359 of file list.h.

#define listLIST_IS_EMPTY (   pxList)    ( ( BaseType_t ) ( ( pxList )->uxNumberOfItems == ( UBaseType_t ) 0 ) )

Definition at line 291 of file list.h.

#define listLIST_IS_INITIALISED (   pxList)    ( ( pxList )->xListEnd.xItemValue == portMAX_DELAY )

Definition at line 374 of file list.h.

#define listLIST_ITEM_CONTAINER (   pxListItem)    ( ( pxListItem )->pvContainer )

Definition at line 367 of file list.h.

#define listSECOND_LIST_INTEGRITY_CHECK_VALUE

Definition at line 151 of file list.h.

#define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE

Definition at line 149 of file list.h.

#define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE (   pxItem)

Definition at line 152 of file list.h.

#define listSET_LIST_INTEGRITY_CHECK_1_VALUE (   pxList)

Definition at line 154 of file list.h.

#define listSET_LIST_INTEGRITY_CHECK_2_VALUE (   pxList)

Definition at line 155 of file list.h.

#define listSET_LIST_ITEM_OWNER (   pxListItem,
  pxOwner 
)    ( ( pxListItem )->pvOwner = ( void * ) ( pxOwner ) )

Definition at line 221 of file list.h.

#define listSET_LIST_ITEM_VALUE (   pxListItem,
  xValue 
)    ( ( pxListItem )->xItemValue = ( xValue ) )

Definition at line 239 of file list.h.

#define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE (   pxItem)

Definition at line 153 of file list.h.

#define listTEST_LIST_INTEGRITY (   pxList)

Definition at line 157 of file list.h.

#define listTEST_LIST_ITEM_INTEGRITY (   pxItem)

Definition at line 156 of file list.h.

Typedef Documentation

typedef struct xLIST List_t
typedef struct xLIST_ITEM ListItem_t

Definition at line 191 of file list.h.

Definition at line 200 of file list.h.

Function Documentation

UBaseType_t uxListRemove ( ListItem_t *const  pxItemToRemove)

Definition at line 212 of file list.c.

void vListInitialise ( List_t *const  pxList)

Definition at line 79 of file list.c.

void vListInitialiseItem ( ListItem_t *const  pxItem)

Definition at line 104 of file list.c.

void vListInsert ( List_t *const  pxList,
ListItem_t *const  pxNewListItem 
)

Definition at line 145 of file list.c.

void vListInsertEnd ( List_t *const  pxList,
ListItem_t *const  pxNewListItem 
)

Definition at line 116 of file list.c.