Prosody generic: API: sm_reset_channel

This function is only in Prosody version 1 (see also the conversion guide for further details).

Prototype Definition

int sm_reset_channel(tSMChannelId channel)

Parameters

channel
The channel to be reset.

Description

Restores the state of the channel (with respect to firmware specific API for type of firmware loaded on module hosting channel) to that immediately following channel allocation.

Note any expansion bus timeslots assigned for channel by sm_switch_channel_input() or sm_switch_channel_output() remain assigned, and any events associated with channel through sm_channel_set_event() remain associated.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody generic API.