Beispiel #1
0
        /// <summary>
        /// Gets the CANifier fault status
        /// </summary>
        /// <param name="toFill">Container for fault statuses.</param>
        /// <returns>Error Code generated by function. 0 indicates no error.</returns>
        public ErrorCode GetFaults(CANifierFaults toFill)
        {
            int bits = CANifierNative.JNI_GetFaults(m_handle);

            toFill.Update(bits);
            return(GetLastError());
        }
Beispiel #2
0
        // ------ Faults ----------//

        /**
         * Gets the CANifier fault status
         *
         * @param toFill
         *            Container for fault statuses.
         * @return Error Code generated by function. 0 indicates no error.
         */
        public ErrorCode GetFaults(CANifierFaults toFill)
        {
            ErrorCode bits = _ll.GetFaults(toFill);

            return(GetLastError());
        }