Functions and callbacks to handle setting groups on the server side.
More...
|
typedef bool(* | ActiveSettingGroupChangedHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t newActSg, ClientConnection connection) |
| Callback handler that is invoked when the active setting group is about to be changed by an external client. More...
|
|
typedef bool(* | EditSettingGroupChangedHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t newEditSg, ClientConnection connection) |
| Callback handler that is invoked when the edit setting group is about to be changed by an external client. More...
|
|
typedef void(* | EditSettingGroupConfirmationHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t editSg) |
| Callback handler that is invoked when the edit setting group has been confirmed by an external client. More...
|
|
|
LIB61850_API void | IedServer_changeActiveSettingGroup (IedServer self, SettingGroupControlBlock *sgcb, uint8_t newActiveSg) |
| Change active setting group. More...
|
|
LIB61850_API uint8_t | IedServer_getActiveSettingGroup (IedServer self, SettingGroupControlBlock *sgcb) |
| Get the active setting group number. More...
|
|
LIB61850_API void | IedServer_setActiveSettingGroupChangedHandler (IedServer self, SettingGroupControlBlock *sgcb, ActiveSettingGroupChangedHandler handler, void *parameter) |
| Set the callback handler for the SetActSG event. More...
|
|
LIB61850_API void | IedServer_setEditSettingGroupChangedHandler (IedServer self, SettingGroupControlBlock *sgcb, EditSettingGroupChangedHandler handler, void *parameter) |
| Set the callback handler for the SetEditSG event. More...
|
|
LIB61850_API void | IedServer_setEditSettingGroupConfirmationHandler (IedServer self, SettingGroupControlBlock *sgcb, EditSettingGroupConfirmationHandler handler, void *parameter) |
| Set the callback handler for the COnfEditSG event. More...
|
|
Functions and callbacks to handle setting groups on the server side.
◆ ActiveSettingGroupChangedHandler
typedef bool(* ActiveSettingGroupChangedHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t newActSg, ClientConnection connection) |
Callback handler that is invoked when the active setting group is about to be changed by an external client.
This function is called BEFORE the active setting group is changed. The user can reject to change the active setting group by returning false.
- Parameters
-
user | provided parameter |
sgcb | the setting group control block of the setting group that is about to be changed |
newActSg | the new active setting group |
connection | the client connection that requests the change |
- Returns
- true if the change is accepted, false otherwise.
◆ EditSettingGroupChangedHandler
typedef bool(* EditSettingGroupChangedHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t newEditSg, ClientConnection connection) |
Callback handler that is invoked when the edit setting group is about to be changed by an external client.
In this function the user should update all SE data attributes associated with the given SettingGroupControlBlock. This function is called BEFORE the active setting group is changed. The user can reject to change the edit setting group by returning false. This can be used to implement RBAC.
- Parameters
-
user | provided parameter |
sgcb | the setting group control block of the setting group that is about to be changed |
newEditSg | the new edit setting group |
connection | the client connection that requests the change |
- Returns
- true if the change is accepted, false otherwise.
◆ EditSettingGroupConfirmationHandler
typedef void(* EditSettingGroupConfirmationHandler) (void *parameter, SettingGroupControlBlock *sgcb, uint8_t editSg) |
Callback handler that is invoked when the edit setting group has been confirmed by an external client.
- Parameters
-
user | provided parameter |
sgcb | the setting group control block of the setting group that is about to be changed |
editSg | the edit setting group that has been confirmed |
◆ IedServer_changeActiveSettingGroup()
LIB61850_API void IedServer_changeActiveSettingGroup |
( |
IedServer |
self, |
|
|
SettingGroupControlBlock * |
sgcb, |
|
|
uint8_t |
newActiveSg |
|
) |
| |
Change active setting group.
Inform the IedServer that the active setting group has changed due to an internal event. Before calling this function the user should update the relevant data attributes with FC=SG!
- Parameters
-
self | the instance of IedServer to operate on. |
sgcb | the handle of the setting group control block of the setting group |
newActiveSg | the number of the new active setting group |
◆ IedServer_getActiveSettingGroup()
LIB61850_API uint8_t IedServer_getActiveSettingGroup |
( |
IedServer |
self, |
|
|
SettingGroupControlBlock * |
sgcb |
|
) |
| |
Get the active setting group number.
- Parameters
-
self | the instance of IedServer to operate on. |
sgcb | the handle of the setting group control block of the setting group |
- Returns
- the number of the active setting group
◆ IedServer_setActiveSettingGroupChangedHandler()
Set the callback handler for the SetActSG event.
- Parameters
-
self | the instance of IedServer to operate on. |
sgcb | the handle of the setting group control block of the setting group. |
handler | the user provided callback handler. |
parameter | a user provided parameter that is passed to the control handler. |
◆ IedServer_setEditSettingGroupChangedHandler()
Set the callback handler for the SetEditSG event.
- Parameters
-
self | the instance of IedServer to operate on. |
sgcb | the handle of the setting group control block of the setting group. |
handler | the user provided callback handler. |
parameter | a user provided parameter that is passed to the control handler. |
◆ IedServer_setEditSettingGroupConfirmationHandler()
Set the callback handler for the COnfEditSG event.
- Parameters
-
self | the instance of IedServer to operate on. |
sgcb | the handle of the setting group control block of the setting group. |
handler | the user provided callback handler. |
parameter | a user provided parameter that is passed to the control handler. |