Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

FT8xx functions to write and read memory . More...

Functions

void ft8xx_wr8 (const struct device *dev, uint32_t address, uint8_t data)
 Write 1 byte (8 bits) to FT8xx memory.
 
void ft8xx_wr16 (const struct device *dev, uint32_t address, uint16_t data)
 Write 2 bytes (16 bits) to FT8xx memory.
 
void ft8xx_wr32 (const struct device *dev, uint32_t address, uint32_t data)
 Write 4 bytes (32 bits) to FT8xx memory.
 
uint8_t ft8xx_rd8 (const struct device *dev, uint32_t address)
 Read 1 byte (8 bits) from FT8xx memory.
 
uint16_t ft8xx_rd16 (const struct device *dev, uint32_t address)
 Read 2 bytes (16 bits) from FT8xx memory.
 
uint32_t ft8xx_rd32 (const struct device *dev, uint32_t address)
 Read 4 bytes (32 bits) from FT8xx memory.
 

Detailed Description

FT8xx functions to write and read memory .

Function Documentation

◆ ft8xx_rd16()

uint16_t ft8xx_rd16 ( const struct device * dev,
uint32_t address )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Read 2 bytes (16 bits) from FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to read from
Returns
Value read from memory

◆ ft8xx_rd32()

uint32_t ft8xx_rd32 ( const struct device * dev,
uint32_t address )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Read 4 bytes (32 bits) from FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to read from
Returns
Value read from memory

◆ ft8xx_rd8()

uint8_t ft8xx_rd8 ( const struct device * dev,
uint32_t address )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Read 1 byte (8 bits) from FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to read from
Returns
Value read from memory

◆ ft8xx_wr16()

void ft8xx_wr16 ( const struct device * dev,
uint32_t address,
uint16_t data )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Write 2 bytes (16 bits) to FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to write to
dataValue to write

◆ ft8xx_wr32()

void ft8xx_wr32 ( const struct device * dev,
uint32_t address,
uint32_t data )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Write 4 bytes (32 bits) to FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to write to
dataValue to write

◆ ft8xx_wr8()

void ft8xx_wr8 ( const struct device * dev,
uint32_t address,
uint8_t data )

#include <zephyr/drivers/misc/ft8xx/ft8xx_common.h>

Write 1 byte (8 bits) to FT8xx memory.

Parameters
devPointer to the device structure for the driver instance
addressMemory address to write to
dataByte to write