Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
eth_adin2111.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 PHOENIX CONTACT Electronics GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__
8#define ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__
9
10#include <stdint.h>
11#include <zephyr/kernel.h>
12#include <zephyr/device.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
30int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout);
31
41int eth_adin2111_unlock(const struct device *dev);
42
56int eth_adin2111_reg_write(const struct device *dev, const uint16_t reg, uint32_t val);
57
71int eth_adin2111_reg_read(const struct device *dev, const uint16_t reg, uint32_t *val);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__ */
int eth_adin2111_reg_read(const struct device *dev, const uint16_t reg, uint32_t *val)
Reads host MAC interface register over SPI.
int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout)
Locks device access.
int eth_adin2111_unlock(const struct device *dev)
Unlocks device access.
int eth_adin2111_reg_write(const struct device *dev, const uint16_t reg, uint32_t val)
Writes host MAC interface register over SPI.
Public kernel APIs.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition: device.h:381
Kernel timeout type.
Definition: sys_clock.h:65