Developer World
Spresense SDK Library v3.2.0-ebc0364
max7456.h
1/****************************************************************************
2 * include/nuttx/video/max7456.h
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership. The
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations
17 * under the License.
18 *
19 ****************************************************************************/
20
21#ifndef __INCLUDE_NUTTX_VIDEO_MAX7456_H
22#define __INCLUDE_NUTTX_VIDEO_MAX7456_H
23
24/****************************************************************************
25 * Included Files
26 ****************************************************************************/
27
28#include <nuttx/config.h>
29
30/****************************************************************************
31 * Public Data
32 ****************************************************************************/
33
34struct spi_dev_s;
35
37{
38 int spi_devid;
39 FAR struct spi_dev_s *spi;
40};
41
42/****************************************************************************
43 * Public Function Prototypes
44 ****************************************************************************/
45
46/****************************************************************************
47 * Name: max7456_register
48 *
49 * Description:
50 * Registers an max7456 chip, and creates an interface 'devpath'
51 *
52 * Input Parameters:
53 * path - The full path to the interface to register. E.g., "/dev/osd0"
54 * config - Configuration information
55 *
56 * Returned Value:
57 * Zero (OK) on success; a negated errno value on failure.
58 *
59 ****************************************************************************/
60
61int max7456_register(FAR const char *path, FAR struct mx7_config_s *config);
62
63#endif /* __INCLUDE_NUTTX_VIDEO_MAX7456_H */
Definition: max7456.h:37