(Page 23 of 32 in this chapter) Version
typedef union _NMS_V5_CHANNEL_LOCATION_T
{
struct {
DWORD boardNb;
DWORD trunkNb;
DWORD timeslotNb;
} CG;
}NMS_V5_CHANNEL_LOCATION_T
typedef void( *NMS_V5_CHANNEL_CALLBACK_T )
( NMS_V5_INTERFACE_ID_T interfaceId,
NMS_V5_CHANNEL_LOCATION_T channel_loc,
NMS_V5_CHANNEL_EVENT_T channel_event,
void *databuffer,
DWORD datasize);
void SendData(BYTE *FrameBuffer, DWORD NumberBytes )
{
NMS_V5_RESULT_T NmsResult;
DWORD InterfaceId;
NMS_V5_CHANNEL_LOCATION_T ChannelLocation;
printf("SendData:\n");
/* Get parameters */
promptdw_nodft("Enter interfaceId", &InterfaceId);
printf("Enter channel location:\n");
GetChannelLocationNMS( &ChannelLocation );
NmsResult = NMS_V5PhSendData( InterfaceId,
ChannelLocation,
NumberBytes,
FrameBuffer );
printf ("PhSendData: Result=%s\n",PRINT_RESULT(NmsResult));
}
(Page 23 of 32 in this chapter) Version