142103316Sopenharmony_ci/*
242103316Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
342103316Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
442103316Sopenharmony_ci * you may not use this file except in compliance with the License.
542103316Sopenharmony_ci * You may obtain a copy of the License at
642103316Sopenharmony_ci *
742103316Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
842103316Sopenharmony_ci *
942103316Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1042103316Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1142103316Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1242103316Sopenharmony_ci * See the License for the specific language governing permissions and
1342103316Sopenharmony_ci * limitations under the License.
1442103316Sopenharmony_ci */
1542103316Sopenharmony_ci
1642103316Sopenharmony_ci/*
1742103316Sopenharmony_ci * Constants of events that will be registered to system.
1842103316Sopenharmony_ci */
1942103316Sopenharmony_ciconst EventConstants = {
2042103316Sopenharmony_ci
2142103316Sopenharmony_ci  /**
2242103316Sopenharmony_ci   * Bitmask used for extracting the USBEndpoint type from it's address
2342103316Sopenharmony_ci   */
2442103316Sopenharmony_ci  USB_ENDPOINT_XFERTYPE_MASK: 0x03,
2542103316Sopenharmony_ci
2642103316Sopenharmony_ci  /**
2742103316Sopenharmony_ci   * Control USBEndpoint type
2842103316Sopenharmony_ci   */
2942103316Sopenharmony_ci  USB_ENDPOINT_XFER_CONTROL: 0,
3042103316Sopenharmony_ci
3142103316Sopenharmony_ci  /**
3242103316Sopenharmony_ci   * Isochronous USBEndpoint type
3342103316Sopenharmony_ci   */
3442103316Sopenharmony_ci  USB_ENDPOINT_XFER_ISOC: 1,
3542103316Sopenharmony_ci
3642103316Sopenharmony_ci  /**
3742103316Sopenharmony_ci   * Bulk USBEndpoint type
3842103316Sopenharmony_ci   */
3942103316Sopenharmony_ci  USB_ENDPOINT_XFER_BULK: 2,
4042103316Sopenharmony_ci
4142103316Sopenharmony_ci  /**
4242103316Sopenharmony_ci   * Interrupt USBEndpoint type
4342103316Sopenharmony_ci   */
4442103316Sopenharmony_ci  USB_ENDPOINT_XFER_INT: 3,
4542103316Sopenharmony_ci
4642103316Sopenharmony_ci  /**
4742103316Sopenharmony_ci   * Bitmask used for extracting the USBEndpoint number from it's address
4842103316Sopenharmony_ci   */
4942103316Sopenharmony_ci  USB_ENDPOINT_NUMBER_MASK: 0x0f,
5042103316Sopenharmony_ci
5142103316Sopenharmony_ci  /**
5242103316Sopenharmony_ci   * Bitmask used for extracting the USBEndpoint direction from it's address
5342103316Sopenharmony_ci   */
5442103316Sopenharmony_ci  USB_ENDPOINT_DIR_MASK: 0x80,
5542103316Sopenharmony_ci
5642103316Sopenharmony_ci  /**
5742103316Sopenharmony_ci   * Used to signify direction of data for USBEndpoint is OUT, host to device
5842103316Sopenharmony_ci   */
5942103316Sopenharmony_ci  USB_ENDPOINT_DIR_OUT: 0,
6042103316Sopenharmony_ci
6142103316Sopenharmony_ci  /**
6242103316Sopenharmony_ci   * Used to signify direction of data for USBEndpoint is IN, device to host
6342103316Sopenharmony_ci   */
6442103316Sopenharmony_ci  USB_ENDPOINT_DIR_IN: 0x80
6542103316Sopenharmony_ci}
6642103316Sopenharmony_ci
6742103316Sopenharmony_ciexport default EventConstants;