Exemple #1
0
        /**
         * Gets the period of the given status frame.
         *
         * @param frame
         *            Frame to get the period of.
         * @param timeoutMs
         *            Timeout value in ms. If nonzero, function will wait for
         *            config success and report an error if it times out.
         *            If zero, no blocking or checking is performed.
         * @return Period of the given status frame.
         */
        public int GetStatusFramePeriod(StatusFrameEnhanced frame, int timeoutMs = 0)
        {
            int periodMs;

            base.GetStatusFramePeriod(frame, out periodMs, timeoutMs);
            return(periodMs);
        }
Exemple #2
0
 /**
  * Sets the period of the given status frame.
  *
  * User ensure CAN Bus utilization is not high.
  *
  * This setting is not persistent and is lost when device is reset.
  * If this is a concern, calling application can use HasReset()
  * to determine if the status frame needs to be reconfigured.
  *
  * @param frame
  *            Frame whose period is to be changed.
  * @param periodMs
  *            Period in ms for the given frame.
  * @param timeoutMs
  *            Timeout value in ms. If nonzero, function will wait for
  *            config success and report an error if it times out.
  *            If zero, no blocking or checking is performed.
  * @return Error Code generated by function. 0 indicates no error.
  */
 new public ErrorCode SetStatusFramePeriod(StatusFrameEnhanced frame, int periodMs, int timeoutMs = 0)
 {
     return(base.SetStatusFramePeriod(frame, periodMs, timeoutMs));
 }
Exemple #3
0
 public ErrorCode GetStatusFramePeriod(StatusFrameEnhanced frame, out int periodMs, int timeoutMs = 0)
 {
     return(_ll.GetStatusFramePeriod(frame, out periodMs, timeoutMs));
 }