You are here: CSP API Reference > 1 EXS & SwitchKit API Messages > AllocateChannelGroup

AllocateChannelGroup

Type

SwitchKit API message

Description

Use the SK_AllocateChannelGroup message to manually allocate all available channels in a given channel group. If GroupName is not valid, then Status in the acknowledgment contains SK_INVALID_GROUP. Otherwise, it contains 0x10, and Channels contains a list of all the channels that have been allocated. Channels[0-1] will contain the first span, Channels[2] will contain the first channel offset, and so on, for as many channels as are specified in NumChannels.

Sent by

Application

C Structure

typedef struct {

char GroupName[50];

UBYTE reserved67[203];

} SK_AllocateChannelGroup;

C Structure Response

typedef struct {

int Status;

int NumChannels;

UBYTE Channels[245];

} SK_AllocateChannelGroupAck;

C++ Class

class SKC_AllocateChannelGroup : public SKC_ToolkitMessage {

public:

const char *getGroupName() const;

void setGroupName(const char *x);

};

C++ Class Response

class SKC_AllocateChannelGroupAck : public SKC_ToolkitAck {

public:

int getStatus() const;

void setStatus(int x);

int getNumChannels() const;

void setNumChannels(int x);

const UBYTE *getChannels() const;

UBYTE *getChannels();

void setChannels(UBYTE *x);

};