nuttx-apps/testing/irtest/enumDefine.cpp
dongjiuzhu 85f96e379e testing/irtest: test ir by LIRC interface
N/A

Change-Id: I008d2cf3f1db18cfa24bc20a5643f4960a97be3e
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-21 18:47:29 -08:00

69 lines
2.7 KiB
C++

/****************************************************************************
* testing/irtest/enumDefine.cpp
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include "enum.hpp"
#include <nuttx/lirc.h>
/****************************************************************************
* Public Data
****************************************************************************/
ENUM_START(mode_t)
ENUM_VALUE(LIRC_MODE_RAW)
ENUM_VALUE(LIRC_MODE_PULSE)
ENUM_VALUE(LIRC_MODE_MODE2)
ENUM_VALUE(LIRC_MODE_SCANCODE)
ENUM_VALUE(LIRC_MODE_LIRCCODE)
ENUM_END(mode_t, "0x%02x")
ENUM_START(features_t)
ENUM_VALUE(LIRC_CAN_SEND_RAW)
ENUM_VALUE(LIRC_CAN_SEND_PULSE)
ENUM_VALUE(LIRC_CAN_SEND_MODE2)
ENUM_VALUE(LIRC_CAN_SEND_SCANCODE)
ENUM_VALUE(LIRC_CAN_SEND_LIRCCODE)
ENUM_VALUE(LIRC_CAN_SET_SEND_CARRIER)
ENUM_VALUE(LIRC_CAN_SET_SEND_DUTY_CYCLE)
ENUM_VALUE(LIRC_CAN_SET_TRANSMITTER_MASK)
ENUM_VALUE(LIRC_CAN_REC_RAW)
ENUM_VALUE(LIRC_CAN_REC_PULSE)
ENUM_VALUE(LIRC_CAN_REC_MODE2)
ENUM_VALUE(LIRC_CAN_REC_SCANCODE)
ENUM_VALUE(LIRC_CAN_REC_LIRCCODE)
ENUM_VALUE(LIRC_CAN_SET_REC_CARRIER)
ENUM_VALUE(LIRC_CAN_SET_REC_DUTY_CYCLE)
ENUM_VALUE(LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE)
ENUM_VALUE(LIRC_CAN_SET_REC_CARRIER_RANGE)
ENUM_VALUE(LIRC_CAN_GET_REC_RESOLUTION)
ENUM_VALUE(LIRC_CAN_SET_REC_TIMEOUT)
ENUM_VALUE(LIRC_CAN_SET_REC_FILTER)
ENUM_VALUE(LIRC_CAN_MEASURE_CARRIER)
ENUM_VALUE(LIRC_CAN_USE_WIDEBAND_RECEIVER)
ENUM_VALUE(LIRC_CAN_NOTIFY_DECODE)
ENUM_END(features_t, "0x%08x")
/****************************************************************************
* Public Functions
****************************************************************************/