2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #ifndef __PIXELGEN_PUBLIC_H_INCLUDED__
16 #define __PIXELGEN_PUBLIC_H_INCLUDED__
18 #ifdef USE_INPUT_SYSTEM_VERSION_2401
19 /*****************************************************
21 * Native command interface (NCI).
23 *****************************************************/
25 * @brief Get the pixelgen state.
26 * Get the state of the pixelgen regiester-set.
28 * @param[in] id The global unique ID of the pixelgen controller.
29 * @param[out] state Point to the register-state.
31 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_get_state(
32 const pixelgen_ID_t ID,
33 pixelgen_ctrl_state_t *state);
35 * @brief Dump the pixelgen state.
36 * Dump the state of the pixelgen regiester-set.
38 * @param[in] id The global unique ID of the pixelgen controller.
39 * @param[in] state Point to the register-state.
41 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_dump_state(
42 const pixelgen_ID_t ID,
43 pixelgen_ctrl_state_t *state);
46 /*****************************************************
48 * Device level interface (DLI).
50 *****************************************************/
52 * @brief Load the register value.
53 * Load the value of the register of the pixelgen
55 * @param[in] ID The global unique ID for the pixelgen instance.
56 * @param[in] reg The offet address of the register.
58 * @return the value of the register.
60 STORAGE_CLASS_PIXELGEN_H hrt_data pixelgen_ctrl_reg_load(
61 const pixelgen_ID_t ID,
62 const hrt_address reg);
64 * @brief Store a value to the register.
65 * Store a value to the registe of the pixelgen
67 * @param[in] ID The global unique ID for the pixelgen.
68 * @param[in] reg The offet address of the register.
69 * @param[in] value The value to be stored.
72 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_reg_store(
73 const pixelgen_ID_t ID,
74 const hrt_address reg,
75 const hrt_data value);
78 #endif /* USE_INPUT_SYSTEM_VERSION_2401 */
79 #endif /* __PIXELGEN_PUBLIC_H_INCLUDED__ */