![]() |
no-OS
|
#include "no_os_error.h"#include "no_os_alloc.h"#include "no_os_util.h"#include "no_os_i2c.h"#include "gmsl_reg_access.h"#include "gmsl_dbg.h"Functions | |
| int32_t | gmsl_reg_read (struct no_os_i2c_desc *i2c_desc, uint16_t reg, uint8_t mask, uint8_t *readval) |
| Read a value from a GMSL register. | |
| int32_t | gmsl_reg_write (struct no_os_i2c_desc *i2c_desc, uint16_t reg, uint8_t writeval) |
| Write a value to a GMSL register. | |
| int32_t | gmsl_reg_update (struct no_os_i2c_desc *i2c_desc, uint16_t reg, uint8_t val, uint8_t mask) |
| Update a value in a GMSL register. | |
| int32_t gmsl_reg_read | ( | struct no_os_i2c_desc * | i2c_desc, |
| uint16_t | reg, | ||
| uint8_t | mask, | ||
| uint8_t * | readval ) |
Read a value from a GMSL register.
| i2c_desc | - Pointer to the I2C descriptor. |
| reg | - Register address to read from. |
| mask | - Mask to apply to the read value. |
| readval | - Pointer to store the read value. |
| int32_t gmsl_reg_update | ( | struct no_os_i2c_desc * | i2c_desc, |
| uint16_t | reg, | ||
| uint8_t | val, | ||
| uint8_t | mask ) |
Update a value in a GMSL register.
| i2c_desc | - Pointer to the I2C descriptor. |
| reg | - Register address to update. |
| val | - Value to write to the register. |
| mask | - Mask to apply to the value. |
| int32_t gmsl_reg_write | ( | struct no_os_i2c_desc * | i2c_desc, |
| uint16_t | reg, | ||
| uint8_t | writeval ) |
Write a value to a GMSL register.
| i2c_desc | - Pointer to the I2C descriptor. |
| reg | - Register address to write to. |
| writeval | - Value to write to the register. |