mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 22:05:54 +08:00
drivers/sensors: add Quectel L86-XXX GNSS uORB sensor driver
Some checks failed
Build Documentation / build-html (push) Has been cancelled
Some checks failed
Build Documentation / build-html (push) Has been cancelled
This commit is contained in:
committed by
Alan C. Assis
parent
3f65182699
commit
0ce9e82d73
@@ -498,6 +498,19 @@
|
||||
|
||||
#define SNIOC_GET_CALIBVALUE _SNIOC(0x00A3)
|
||||
|
||||
/* Command: SNIOC_SET_BAUD
|
||||
* Description: Sets the baud rate of the sensor.
|
||||
*/
|
||||
|
||||
#define SNIOC_SET_BAUD _SNIOC(0x00A4)
|
||||
|
||||
/* IOCTL commands unique to the L86XXX and other GNSS modules */
|
||||
|
||||
#define SNIOC_HOT_START _SNIOC(0X00A5)
|
||||
#define SNIOC_WARM_START _SNIOC(0X00A6)
|
||||
#define SNIOC_COLD_START _SNIOC(0X00A7)
|
||||
#define SNIOC_FULL_COLD_START _SNIOC(0X00A8)
|
||||
|
||||
/****************************************************************************
|
||||
* Public types
|
||||
****************************************************************************/
|
||||
|
||||
82
include/nuttx/sensors/l86xxx.h
Normal file
82
include/nuttx/sensors/l86xxx.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/****************************************************************************
|
||||
* include/nuttx/sensors/l86xxx.h
|
||||
*
|
||||
* NOTE: EXPERIMENTAL DRIVER
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_NUTTX_SENSORS_L86XXX_H
|
||||
#define __INCLUDE_NUTTX_SENSORS_L86XXX_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/sensors/ioctl.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Declarations
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data Types
|
||||
****************************************************************************/
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CMD_HOT_START = 101,
|
||||
CMD_WARM_START = 102,
|
||||
CMD_COLD_START = 103,
|
||||
CMD_FULL_COLD_START = 104,
|
||||
CMD_STANDBY_MODE = 161,
|
||||
SET_POS_FIX = 220,
|
||||
SET_NMEA_BAUDRATE = 251,
|
||||
FR_MODE = 886,
|
||||
} L86XXX_PMTK_COMMAND;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
NORMAL = 0,
|
||||
FITNESS = 1,
|
||||
AVIATION = 2,
|
||||
BALLOON = 3,
|
||||
STANDBY = 4,
|
||||
} L86XXX_OPERATIONAL_MODE;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: l86xxx_register
|
||||
*
|
||||
* Description:
|
||||
* Register the L86-XXX GNSS device driver.
|
||||
*
|
||||
* Arguments:
|
||||
* uartpath - The path to the UART character driver connected to the
|
||||
* GNSS module
|
||||
* devno - The device number to use for the topic (i.e. /dev/mag0)
|
||||
****************************************************************************/
|
||||
|
||||
int l86xxx_register(FAR const char *uartpath, int devno);
|
||||
|
||||
#endif /* __INCLUDE_NUTTX_SENSORS_L86XXX_H */
|
||||
Reference in New Issue
Block a user