Class: Toybox.Ant.ChannelAssignment
- Inherits:
-
Toybox.Lang.Object
Overview
A class to control the assignment of an ANT wireless channel.
Instance Member Summary collapse
-
channelType as Ant.ChannelType
Defines the type of channel.
-
network as Ant.NetworkType
Defines the type of network the channel should operate under.
Instance Method Summary collapse
-
initialize(c as Ant.ChannelType, n as Ant.NetworkType)
Constructor By default disables background scanning.
-
isBackgroundScanEnabled() as Lang.Boolean
See if background scanning is enabled for the channel assignment.
-
setBackgroundScan(isBackgroundScanEnabled as Lang.Boolean) as Lang.Boolean
Set background scan to be enabled or disabled.
Instance Attribute Details
var channelType as Ant.ChannelType
Defines the type of channel.
The channel can be defined to primarily send data (master) or
receive data(slave). The channel type is set via the
CHANNEL_TYPE_* constant passed
to the Ant.ChannelAssignment.initialize()
function for the channelType
parameter.
var network as Ant.NetworkType
Defines the type of network the channel should operate under.
The network is set via the NETWORK_*
constant passed to the Ant.ChannelAssignment.initialize()
function for the network
parameter.
Instance Method Details
initialize(c as Ant.ChannelType, n as Ant.NetworkType)
Constructor By default disables background scanning.
isBackgroundScanEnabled() as Lang.Boolean
See if background scanning is enabled for the channel assignment.
setBackgroundScan(isBackgroundScanEnabled as Lang.Boolean) as Lang.Boolean
Set background scan to be enabled or disabled.
Enabling background scan can only be done on Receive Only channels.