![]() |
no-OS
|
Source file of MAX149X6 Base Driver. More...
#include <errno.h>#include <stdlib.h>#include <string.h>#include "max149x6-base.h"#include "no_os_util.h"#include "no_os_alloc.h"Functions | |
| int | max149x6_reg_write (struct max149x6_desc *desc, uint32_t addr, uint32_t val) |
| Write the value of a device register. | |
| int | max149x6_reg_read (struct max149x6_desc *desc, uint32_t addr, uint32_t *val) |
| Read the value of a device register. | |
| int | max149x6_reg_update (struct max149x6_desc *desc, uint32_t addr, uint32_t mask, uint32_t val) |
| Update the value of a device register (read/write sequence). | |
Source file of MAX149X6 Base Driver.
Copyright 2023(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| int max149x6_reg_read | ( | struct max149x6_desc * | desc, |
| uint32_t | addr, | ||
| uint32_t * | val ) |
Read the value of a device register.
| desc | - device descriptor for the MAX149X6 |
| addr | - address of the register |
| val | - value of the register |
| int max149x6_reg_update | ( | struct max149x6_desc * | desc, |
| uint32_t | addr, | ||
| uint32_t | mask, | ||
| uint32_t | val ) |
Update the value of a device register (read/write sequence).
| desc | - device descriptor for the MAX149X6 |
| addr | - address of the register |
| mask | - bit mask of the field to be updated |
| val | - value of the masked field. Should be bit shifted by using no_os_field_prep(mask, val) |
| int max149x6_reg_write | ( | struct max149x6_desc * | desc, |
| uint32_t | addr, | ||
| uint32_t | val ) |
Write the value of a device register.
| desc | - device descriptor for the MAX149X6 |
| addr | - address of the register |
| val | - value of the register |