Classes | Macros | Typedefs | Functions
list.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xLIST
 
struct  xLIST_ITEM
 
struct  xMINI_LIST_ITEM
 

Macros

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

Typedefs

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

Functions

UBaseType_t uxListRemove (ListItem_t *const pxItemToRemove) PRIVILEGED_FUNCTION
 
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
 

Macro Definition Documentation

◆ configLIST_VOLATILE

#define configLIST_VOLATILE

Definition at line 93 of file list.h.

◆ listCURRENT_LIST_LENGTH

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

Definition at line 255 of file list.h.

◆ listFIRST_LIST_INTEGRITY_CHECK_VALUE

#define listFIRST_LIST_INTEGRITY_CHECK_VALUE

Definition at line 109 of file list.h.

◆ listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE

#define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE

Definition at line 107 of file list.h.

◆ listGET_END_MARKER

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

Definition at line 241 of file list.h.

◆ listGET_HEAD_ENTRY

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

Definition at line 225 of file list.h.

◆ listGET_ITEM_VALUE_OF_HEAD_ENTRY

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

Definition at line 217 of file list.h.

◆ listGET_LIST_ITEM_OWNER

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

Definition at line 189 of file list.h.

◆ listGET_LIST_ITEM_VALUE

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

Definition at line 208 of file list.h.

◆ listGET_NEXT

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

Definition at line 233 of file list.h.

◆ listGET_OWNER_OF_HEAD_ENTRY

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

Definition at line 307 of file list.h.

◆ listGET_OWNER_OF_NEXT_ENTRY

#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; \
}

Definition at line 277 of file list.h.

◆ listIS_CONTAINED_WITHIN

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

Definition at line 318 of file list.h.

◆ listLIST_IS_EMPTY

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

Definition at line 250 of file list.h.

◆ listLIST_IS_INITIALISED

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

Definition at line 333 of file list.h.

◆ listLIST_ITEM_CONTAINER

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

Definition at line 326 of file list.h.

◆ listSECOND_LIST_INTEGRITY_CHECK_VALUE

#define listSECOND_LIST_INTEGRITY_CHECK_VALUE

Definition at line 110 of file list.h.

◆ listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE

#define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE

Definition at line 108 of file list.h.

◆ listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE

#define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE (   pxItem)

Definition at line 111 of file list.h.

◆ listSET_LIST_INTEGRITY_CHECK_1_VALUE

#define listSET_LIST_INTEGRITY_CHECK_1_VALUE (   pxList)

Definition at line 113 of file list.h.

◆ listSET_LIST_INTEGRITY_CHECK_2_VALUE

#define listSET_LIST_INTEGRITY_CHECK_2_VALUE (   pxList)

Definition at line 114 of file list.h.

◆ listSET_LIST_ITEM_OWNER

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

Definition at line 180 of file list.h.

◆ listSET_LIST_ITEM_VALUE

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

Definition at line 198 of file list.h.

◆ listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE

#define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE (   pxItem)

Definition at line 112 of file list.h.

◆ listTEST_LIST_INTEGRITY

#define listTEST_LIST_INTEGRITY (   pxList)

Definition at line 116 of file list.h.

◆ listTEST_LIST_ITEM_INTEGRITY

#define listTEST_LIST_ITEM_INTEGRITY (   pxItem)

Definition at line 115 of file list.h.

Typedef Documentation

◆ List_t

typedef struct xLIST List_t

◆ ListItem_t

typedef struct xLIST_ITEM ListItem_t

Definition at line 150 of file list.h.

◆ MiniListItem_t

Definition at line 159 of file list.h.

Function Documentation

◆ uxListRemove()

UBaseType_t uxListRemove ( ListItem_t *const  pxItemToRemove)

Definition at line 171 of file list.c.

◆ vListInitialise()

void vListInitialise ( List_t *const  pxList)

Definition at line 38 of file list.c.

◆ vListInitialiseItem()

void vListInitialiseItem ( ListItem_t *const  pxItem)

Definition at line 63 of file list.c.

◆ vListInsert()

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

Definition at line 104 of file list.c.

◆ vListInsertEnd()

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

Definition at line 75 of file list.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59