Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_ds28e17

Driver for DS28E17 (1-wire-to-I2C Master Bridge) More...

Data Structures

struct  bc_ds28e17_t
 DS28E17 instance. More...
 

Functions

void bc_ds28e17_init (bc_ds28e17_t *self, bc_gpio_channel_t channel, uint64_t device_number)
 Initialize DS28E17. More...
 
void bc_ds28e17_deinit (bc_ds28e17_t *self)
 Deinitialize DS28E17. More...
 
uint64_t bc_ds28e17_get_device_number (bc_ds28e17_t *self)
 Get Device number. More...
 
bool bc_ds28e17_enable_sleep_mode (bc_ds28e17_t *self)
 Enable Sleep Mode. More...
 
bool bc_ds28e17_set_speed (bc_ds28e17_t *self, bc_i2c_speed_t speed)
 Set I2C speed. More...
 
bool bc_ds28e17_write (bc_ds28e17_t *self, const bc_i2c_transfer_t *transfer)
 Write to I2C. More...
 
bool bc_ds28e17_read (bc_ds28e17_t *self, const bc_i2c_transfer_t *transfer)
 Read from I2C. More...
 
bool bc_ds28e17_memory_write (bc_ds28e17_t *self, const bc_i2c_memory_transfer_t *transfer)
 Memory write to I2C. More...
 
bool bc_ds28e17_memory_read (bc_ds28e17_t *self, const bc_i2c_memory_transfer_t *transfer)
 Memory read from I2C. More...
 

Detailed Description

Driver for DS28E17 (1-wire-to-I2C Master Bridge)

Function Documentation

void bc_ds28e17_deinit ( bc_ds28e17_t self)

Deinitialize DS28E17.

Parameters
[in]selfInstance

Definition at line 27 of file bc_ds28e17.c.

Referenced by bc_i2c_deinit().

Here is the caller graph for this function:

bool bc_ds28e17_enable_sleep_mode ( bc_ds28e17_t self)

Enable Sleep Mode.

Parameters
[in]selfInstance
uint64_t bc_ds28e17_get_device_number ( bc_ds28e17_t self)

Get Device number.

Parameters
[in]selfInstance

Definition at line 32 of file bc_ds28e17.c.

void bc_ds28e17_init ( bc_ds28e17_t self,
bc_gpio_channel_t  channel,
uint64_t  device_number 
)

Initialize DS28E17.

Parameters
[in]selfInstance
[in]channelGPIO channel
[in]device_numberDevice number

Definition at line 14 of file bc_ds28e17.c.

Referenced by bc_i2c_init().

Here is the call graph for this function:

Here is the caller graph for this function:

bool bc_ds28e17_memory_read ( bc_ds28e17_t self,
const bc_i2c_memory_transfer_t transfer 
)

Memory read from I2C.

Parameters
[in]selfInstance
[in]transferPointer to I2C memory transfer parameters instance
Returns
true On success
false On failure

Definition at line 109 of file bc_ds28e17.c.

Referenced by bc_i2c_memory_read().

Here is the caller graph for this function:

bool bc_ds28e17_memory_write ( bc_ds28e17_t self,
const bc_i2c_memory_transfer_t transfer 
)

Memory write to I2C.

Parameters
[in]selfInstance
[in]transferPointer to I2C memory transfer parameters instance
Returns
true On success
false On failure

Definition at line 84 of file bc_ds28e17.c.

Referenced by bc_i2c_memory_write().

Here is the caller graph for this function:

bool bc_ds28e17_read ( bc_ds28e17_t self,
const bc_i2c_transfer_t transfer 
)

Read from I2C.

Parameters
[in]selfInstance
[in]transferPointer to I2C transfer parameters instance
Returns
true On success
false On failure

Definition at line 73 of file bc_ds28e17.c.

Referenced by bc_i2c_read().

Here is the caller graph for this function:

bool bc_ds28e17_set_speed ( bc_ds28e17_t self,
bc_i2c_speed_t  speed 
)

Set I2C speed.

Parameters
[in]selfInstance
[in]speedI2C communication speed

Definition at line 37 of file bc_ds28e17.c.

Referenced by bc_i2c_set_speed().

Here is the call graph for this function:

Here is the caller graph for this function:

bool bc_ds28e17_write ( bc_ds28e17_t self,
const bc_i2c_transfer_t transfer 
)

Write to I2C.

Parameters
[in]selfInstance
[in]transferPointer to I2C transfer parameters instance
Returns
true On success
false On failure

Definition at line 62 of file bc_ds28e17.c.

Referenced by bc_i2c_write().

Here is the caller graph for this function: