31 #ifndef SYSTEM_CORE_SRC_NET_OC_PORTMAN_H_ 32 #define SYSTEM_CORE_SRC_NET_OC_PORTMAN_H_ 34 #include <oc_errors.h> 43 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 71 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 78 #define _________________________________________INTERFACE_SECTION__________________________________________________________________________ 95 #undef _________________________________________INTERFACE_SECTION__________________________________________________________________________ uint32_t oC_PortMan_Port_t
stores the port number
oC_ErrorCode_t oC_PortMan_RegisterModule(oC_Module_t Module, const oC_PortMan_Config_t *Config, oC_Time_t Timeout)
registers module in the port manager
oC_ErrorCode_t oC_PortMan_TurnOff(void)
turns off the module
oC_ErrorCode_t oC_PortMan_TurnOn(void)
turns on the module
oC_PortMan_Port_t FirstDynamicPortNumber
The first port, that can be dynamically reserved (when the port to reserve is 0). ...
oC_ErrorCode_t oC_PortMan_ReleaseAllPortsOf(oC_Module_t Module, oC_Process_t Process, oC_Time_t Timeout)
releases all ports reserved by a given process
The file with interface for the module library.
oC_PortMan_Port_t LastDynamicPortNumber
Last port, that can be dynamically reserved (when the port to reserve is 0).
oC_PortMan_Port_t MaximumPortNumber
Maximum number of correct port.
bool oC_PortMan_IsPortReservedBy(oC_Module_t Module, oC_PortMan_Port_t Port, oC_Process_t Process)
checks if the given port is reserved by the given process
bool oC_PortMan_IsPortReserved(oC_Module_t Module, oC_PortMan_Port_t Port)
returns true if port is reserved
oC_ErrorCode_t oC_PortMan_UnregisterModule(oC_Module_t Module, oC_Time_t Timeout)
unregisters module in the port manager
stores configuration of the module
The file with interface for process mechanism.
oC_ErrorCode_t oC_PortMan_ReservePort(oC_Module_t Module, oC_PortMan_Port_t *Port, oC_Time_t Timeout)
reserves a port of the given module
oC_ErrorCode_t oC_PortMan_ReleasePort(oC_Module_t Module, oC_PortMan_Port_t Port, oC_Time_t Timeout)
releases port