StartPolling()
Instructs the data poll sender to start sending periodic data polls.
StopPolling()
Instructs the data poll sender to stop sending periodic data polls.
SendDataPoll()
Enqueues a data poll (an IEEE 802.15.4 Data Request) message.
SetExternalPollPeriod()
Sets/clears a user-specified/external data poll period. Value of zero for `aPeriod` clears the user-specified poll period. If the user provides a non-zero poll period, the user value specifies the maximum period between data request transmissions. Note that OpenThread may send data request transmissions more frequently when expecting a control-message from a parent or in case of data poll transmission failures or timeouts, or when the specified value is larger than the child timeout. A non-zero `aPeriod` should be larger than or equal to `OPENTHREAD_CONFIG_MAC_MINIMUM_POLL_PERIOD` (10ms) or this method returns `kErrorInvalidArgs`. If a non-zero `aPeriod` is larger than maximum value of `0x3FFFFFF ((1 << 26) - 1)`, it would be clipped to this value.
GetExternalPollPeriod() const
Gets the current user-specified/external data poll period.
HandlePollSent()
Informs the data poll sender of success/error status of a previously requested poll frame transmission. In case of transmit failure, the data poll sender may choose to send the next data poll more quickly (up to some fixed number of attempts).
HandlePollTimeout()
Informs the data poll sender that a data poll timeout happened, i.e., when the ack in response to a data request command indicated that a frame was pending, but no frame was received after timeout interval. Data poll sender may choose to transmit another data poll immediately (up to some fixed number of attempts).
ProcessRxFrame()
Informs the data poll sender to process a received MAC frame.
ProcessTxDone()
Informs the data poll sender to process a transmitted MAC frame.
RecalculatePollPeriod()
Asks the data poll sender to recalculate the poll period. This is mainly used to inform the poll sender that a parameter impacting the poll period (e.g., the child's timeout value which is used to determine the default data poll period) is modified.
SetAttachMode()
Sets/clears the attach mode on data poll sender. When attach mode is enabled, the data poll sender will send data polls at a faster rate determined by poll period configuration option `OPENTHREAD_CONFIG_MAC_ATTACH_DATA_POLL_PERIOD`.
SendFastPolls()
Asks data poll sender to send the next given number of polls at a faster rate (poll period defined by `kFastPollPeriod`). This is used by OpenThread stack when it expects a response from the parent/sender. If @p aNumFastPolls is zero the default value specified by `kDefaultFastPolls` is used instead. The number of fast polls is clipped by maximum value specified by `kMaxFastPolls`. Note that per `SendFastPolls()` would increase the internal reference count until up to the allowed maximum value. If there are retransmission mechanism in the caller component, it should be responsible to call `StopFastPolls()` the same times as `SendFastPolls()` it triggered to decrease the reference count properly, guaranteeing to exit fast poll mode gracefully. Otherwise, fast poll would continue until all data polls are sent out.
StopFastPolls()
Asks data poll sender to stop fast polls when the expecting response is received.
GetKeepAlivePollPeriod() const
Gets the maximum data polling period in use. The maximum data poll period is determined based as the minimum of the user-specified poll interval and the default poll interval.
ResetKeepAliveTimer()
Resets the timer for sending keep-alive messages.
GetDefaultPollPeriod() const
Returns the default maximum poll period. The default poll period is determined based on the child timeout interval, ensuing the child would send data poll within the child's timeout.
PrepareDataRequest()
Prepares and returns a data request command frame.
ScheduleNextPoll()
CalculatePollPeriod() const
GetParent() const
HandlePollTimer()
GetPollDestinationAddress() const