Interface IDeviceChannelManager
Abstraction for managing device channels
Assembly: Meadow.Contracts.dll
View Source
public interface IDeviceChannelManager
Properties
SystemReservedPins
Gets or sets a list of pins that are not usable by applications
View Source
string[]? SystemReservedPins { get; set; }
Methods
ReservePin(IPin, ChannelConfigurationType)
Reserves an IPin at run-time for a specified configuration
View Source
Tuple<bool, string> ReservePin(IPin pin, ChannelConfigurationType configType)
Returns
System.Tuple<System.Boolean,System.String>
Parameters
Type | Name |
---|---|
Meadow.Hardware.IPin | pin |
Meadow.Hardware.ChannelConfigurationType | configType |
ReleasePin(IPin)
Releases a reservation on an IPin at run-time
View Source
bool ReleasePin(IPin pin)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
Meadow.Hardware.IPin | pin |
ReservePwm(IPin, IPwmChannelInfo, Frequency)
Reserves an IPin for PWM use
View Source
Tuple<bool, string> ReservePwm(IPin pin, IPwmChannelInfo channelInfo, Frequency frequency)
Returns
System.Tuple<System.Boolean,System.String>
Parameters
Type | Name |
---|---|
Meadow.Hardware.IPin | pin |
Meadow.Hardware.IPwmChannelInfo | channelInfo |
Meadow.Units.Frequency | frequency |
BeforeStartPwm(IPwmChannelInfo)
Method called before Meadow Core starts a PWM. This allows hardware-specific actions like channel reservation and setup.
View Source
void BeforeStartPwm(IPwmChannelInfo info)
Parameters
Type | Name |
---|---|
Meadow.Hardware.IPwmChannelInfo | info |
AfterStartPwm(IPwmChannelInfo, IMeadowIOController)
Method called after Meadow Core starts a PWM. This allows hardware-specific actions like channel reservation and setup.
View Source
void AfterStartPwm(IPwmChannelInfo info, IMeadowIOController ioController)
Parameters
Type | Name |
---|---|
Meadow.Hardware.IPwmChannelInfo | info |
Meadow.Hardware.IMeadowIOController | ioController |