VSF Documented
i2c_request.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __HAL_DRIVER_I2C_CMD_TO_REQUEST_H__
19#define __HAL_DRIVER_I2C_CMD_TO_REQUEST_H__
20
21#if VSF_HAL_USE_I2C == ENABLED
22
23/*============================ INCLUDES ======================================*/
24/*============================ MACROS ========================================*/
25/*============================ MACROFIED FUNCTIONS ===========================*/
26/*============================ TYPES =========================================*/
27
29 vsf_i2c_cmd_t command,
31
32typedef struct vsf_i2c_request_t {
41
42/*============================ GLOBAL VARIABLES ==============================*/
43/*============================ LOCAL VARIABLES ===============================*/
44/*============================ PROTOTYPES ====================================*/
45
46extern void vsf_i2c_request_irq_handler(vsf_i2c_t *i2c_ptr,
47 vsf_i2c_request_t *i2c_request_ptr,
48 uint32_t interrupt_mask,
49 uint32_t param);
50
52 vsf_i2c_request_t *i2c_request_ptr,
53 uint16_t address,
54 vsf_i2c_cmd_t cmd,
55 uint16_t count,
56 uint8_t *buffer_ptr);
57
58
59#endif /* VSF_HAL_USE_I2C */
60#endif /* __HAL_DRIVER_I2C_CMD_TO_REQUEST_H__ */
vsf_err_t
Definition __type.h:42
vsf_i2c_cmd_t
Definition i2c.h:32
void vsf_i2c_request_irq_handler(vsf_i2c_t *i2c_ptr, vsf_i2c_request_t *i2c_request_ptr, uint32_t interrupt_mask, uint32_t param)
Definition i2c_request.c:53
vsf_err_t vsf_i2c_request_master_request(vsf_i2c_t *i2c_ptr, vsf_i2c_request_t *i2c_request_ptr, uint16_t address, vsf_i2c_cmd_t cmd, uint16_t count, uint8_t *buffer_ptr)
Definition i2c_request.c:87
vsf_err_t vsf_i2c_request_send_cmd_fn(vsf_i2c_t *i2c_ptr, vsf_i2c_cmd_t command, uint16_t data)
Definition i2c_request.h:28
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
i2c configuration
Definition vsf_template_i2c.h:314
Definition i2c_request.h:32
uint16_t idx
Definition i2c_request.h:36
vsf_i2c_request_send_cmd_fn * fn
Definition i2c_request.h:39
uint8_t * buffer_ptr
Definition i2c_request.h:38
uint16_t address
Definition i2c_request.h:34
vsf_i2c_cfg_t cfg
Definition i2c_request.h:33
uint16_t count
Definition i2c_request.h:37
vsf_i2c_cmd_t cmd
Definition i2c_request.h:35
Definition vsf_template_i2c.h:334