DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

UDI_VA_ARG(3udi)


Varargs macro for UDI data types

SYNOPSIS

#include <udi.h>

#define UDI_VA_ARG(pvar, type, va_code)
 

 
#define  UDI_VA_UBIT8_T				
 
#define  UDI_VA_SBIT8_T				
 
#define  UDI_VA_UBIT16_T				
 
#define  UDI_VA_SBIT16_T				
 
#define  UDI_VA_UBIT32_T				
 
#define  UDI_VA_SBIT32_T				
 
#define  UDI_VA_BOOLEAN_T				
 
#define  UDI_VA_INDEX_T				
 
#define  UDI_VA_SIZE_T				
 
#define  UDI_VA_STATUS_T				
 
#define  UDI_VA_CHANNEL_T				
 
#define  UDI_VA_ORIGIN_T				
 
#define  UDI_VA_POINTER				
 

ARGUMENTS pvar is a pointer into the argument list, as for ISO C va_arg().

type is one of the UDI data types from the table below.

va_code is a code corresponding to a UDI data type or class of UDI data types, from the table below. This must be from the row of the table that includes the type, type.

DESCRIPTION This macro acts as a wrapper around the ISO C va_arg() macro, allowing it to be used portably with UDI data types. The supported data types and their corresponding va_code values are listed in the following table:
Table 9-8 UDI_VA_ARG Data Type Codes
UDI Data Type va_code Value
udi_ubit8_t UDI_VA_UBIT8_T
udi_sbit8_t UDI_VA_SBIT8_T
udi_ubit16_t UDI_VA_UBIT16_T
udi_sbit16_t UDI_VA_SBIT16_T
udi_ubit32_t UDI_VA_UBIT32_T
udi_sbit32_t UDI_VA_SBIT32_T
udi_boolean_t UDI_VA_BOOLEAN_T
udi_index_t UDI_VA_INDEX_T
udi_size_t UDI_VA_SIZE_T
udi_status_t UDI_VA_STATUS_T
udi_channel_t UDI_VA_CHANNEL_T
udi_origin_t UDI_VA_ORIGIN_T
any pointer type UDI_VA_POINTER


UDI Core Specification Contents