(Page 8 of 32 in this chapter) Version
typedef union _NMS_GR303_CHANNEL_LOCATION_T
{
struct {
DWORD boardNb;
DWORD trunkNb;
DWORD timeslotNb;
} CG;
}NMS_GR303_CHANNEL_LOCATION_T
typedef void(*NMS_GR303_CHANNEL_CALLBACK_T)
(NMS_GR303_INTERFACE_ID_T interfaceId, NMS_GR303_CHANNEL_LOCATION_T channel_loc, NMS_GR303_CHANNEL_EVENT_T channel_event, void *databuffer, DWORD datasize);
void SendData(BYTE *FrameBuffer, DWORD NumberBytes )
{
NMS_GR303_RESULT_T NmsResult;
DWORD InterfaceId;
NMS_GR303_CHANNEL_LOCATION_T ChannelLocation;
printf("SendData:\n");
/* Get parameters */
promptdw_nodft("Enter interfaceId", &InterfaceId);
printf("Enter channel location:\n");
GetChannelLocationNMS( &ChannelLocation );
NmsResult = NMS_GR303PhSendData( InterfaceId,
ChannelLocation,
NumberBytes,
FrameBuffer );
printf ("PhSendData: Result=%s\n",PRINT_RESULT(NmsResult));
}
(Page 8 of 32 in this chapter) Version