Lines Matching +full:tx +full:- +full:mask
1 /* ieee802154_rf2xx_iface.c - ATMEL RF2XX IEEE 802.15.4 Interface */
4 * Copyright (c) 2019-2020 Gerson Fernando Budke
6 * SPDX-License-Identifier: Apache-2.0
29 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_phy_rst()
32 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
33 gpio_pin_set_dt(&conf->slptr_gpio, 0); in rf2xx_iface_phy_rst()
38 gpio_pin_set_dt(&conf->reset_gpio, 1); in rf2xx_iface_phy_rst()
40 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
44 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_phy_tx_start()
46 /* Start TX transmission at rise edge */ in rf2xx_iface_phy_tx_start()
47 gpio_pin_set_dt(&conf->slptr_gpio, 1); in rf2xx_iface_phy_tx_start()
51 gpio_pin_set_dt(&conf->slptr_gpio, 0); in rf2xx_iface_phy_tx_start()
57 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_reg_read()
67 const struct spi_buf_set tx = { in rf2xx_iface_reg_read() local
86 if (spi_transceive_dt(&conf->spi, &tx, &rx) != 0) { in rf2xx_iface_reg_read()
101 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_reg_write()
116 const struct spi_buf_set tx = { in rf2xx_iface_reg_write() local
129 if (spi_transceive_dt(&conf->spi, &tx, &rx) != 0) { in rf2xx_iface_reg_write()
140 uint8_t mask, in rf2xx_iface_bit_read() argument
146 ret &= mask; in rf2xx_iface_bit_read()
154 uint8_t mask, in rf2xx_iface_bit_write() argument
161 current_reg_value &= ~mask; in rf2xx_iface_bit_write()
163 new_value &= mask; in rf2xx_iface_bit_write()
172 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_frame_read()
179 const struct spi_buf_set tx = { in rf2xx_iface_frame_read() local
192 if (spi_transceive_dt(&conf->spi, &tx, &rx) != 0) { in rf2xx_iface_frame_read()
204 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_frame_write()
230 const struct spi_buf_set tx = { in rf2xx_iface_frame_write() local
243 if (spi_transceive_dt(&conf->spi, &tx, &rx) != 0) { in rf2xx_iface_frame_write()
256 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_sram_read()
270 const struct spi_buf_set tx = { in rf2xx_iface_sram_read() local
289 if (spi_transceive_dt(&conf->spi, &tx, &rx) != 0) { in rf2xx_iface_sram_read()