コード例 #1
0
        /**
         * <summary>
         *   Returns the playing sequence signature.
         * <para>
         *   As playing
         *   sequences cannot be read from the device, this can be used
         *   to detect if a specific playing sequence is already
         *   programmed.
         * </para>
         * <para>
         * </para>
         * </summary>
         * <returns>
         *   an integer corresponding to the playing sequence signature
         * </returns>
         * <para>
         *   On failure, throws an exception or returns <c>YBuzzer.PLAYSEQSIGNATURE_INVALID</c>.
         * </para>
         */
        public int get_playSeqSignature()
        {
            int res;

            if (_func == null)
            {
                throw new YoctoApiProxyException("No Buzzer connected");
            }
            res = _func.get_playSeqSignature();
            if (res == YAPI.INVALID_INT)
            {
                res = _PlaySeqSignature_INVALID;
            }
            return(res);
        }