12 #ifndef INCLUDE_DEVICE_MESSAGING_H
13 #define INCLUDE_DEVICE_MESSAGING_H
67 #define INVALID_OFFSET (-1)
429 uint8* apWriteBuffer,
466 uint8* apWriteBuffer,
isf_status_t dm_channel_start(dm_ChannelDescriptor_t *apChannelDescriptor)
This function starts a channel.
void * dm_ChannelConfig_ptr
This structure defines the user-specified parameters for channel configuration.
isf_status_t dm_device_open(dm_ChannelDescriptor_t *apChannelDescriptor, void *apDevice, dm_DeviceDescriptor_t *apDeviceDescriptor)
This function creates a device handle for a device at a specified channel address.
This structure contains protocol-specific function pointers and properties.
comm_State_t dm_channel_get_state(dm_ChannelDescriptor_t *apChannelDescriptor)
This function returns the channel state.
uint32 comm_Id_t
This type is for a numeric channel identifier- index into an array of channels in the system...
dm_ChannelDescriptor_t * pChannelDescriptor
isf_status_t dm_device_writex(dm_DeviceDescriptor_t *apDeviceDescriptor, int32 aOffset, uint8 *apWriteBuffer, uint32 aBuffsize, uint32 aNbyteWrite, comm_Flags_t aFlags)
This function writes data to a device with extended write behavior.
isf_status_t dm_channel_stop(dm_ChannelDescriptor_t *apChannelDescriptor, isf_duration_t aTimeout)
This function stops a channel.
isf_status_t dm_device_write(dm_DeviceDescriptor_t *apDeviceDescriptor, int32 aOffset, uint8 *apWriteBuffer, uint32 aBuffsize, uint32 aNbyteWrite)
This function writes to a device.
const protocol_t * pProtocol
struct dm_DeviceDescriptor_struct dm_DeviceDescriptor_t
This structure defines a handle for the device.
isf_protocol_adapter.h defines the general interface definition for the protocol adapter.
isf_status_t dm_channel_acquire_lock(dm_ChannelDescriptor_t *apChannelDescriptor, isf_duration_t aTimeout)
This function locks the channel for exclusive access.
This structure is a declaration of a BusHandle type.
uint8 comm_Flags_t
This is a bit array of flags governing device read/write behavior.
isf_status_t dm_channel_init(dm_ChannelId_t aChannelId, dm_ChannelDescriptor_t *apChannelDescriptor)
This function initializes a channel.
isf_status_t dm_device_close(dm_DeviceDescriptor_t *apDeviceDescriptor)
This function closes a device.
isf_status_t dm_channel_get_config(dm_ChannelDescriptor_t *apChannelDescriptor, dm_ChannelConfig_ptr apChannelConfig)
This function returns the current channel configuration.
uint32 isf_duration_t
ISF time duration in microseconds.
Main ISF header file. Contains code common to all ISF components.
isf_status_t dm_device_readx(dm_DeviceDescriptor_t *apDeviceDescriptor, int32 aOffset, uint8 *apReadBuffer, uint32 aBuffsize, uint32 aNbyteRead, comm_Flags_t aFlags)
This function reads from a device with extended behavior.
isf_status_t dm_device_read(dm_DeviceDescriptor_t *apDeviceDescriptor, int32 aOffset, uint8 *apReadBuffer, uint32 aBuffsize, uint32 aNbyteRead)
This function reads from a device.
int32 isf_status_t
ISF return status type.
isf_comm.h defines the common types for the Communications Service Family of the Intelligent Sensing ...
isf_status_t dm_channel_configure(dm_ChannelDescriptor_t *apChannelDescriptor, dm_ChannelConfig_ptr apChannelConfig)
This function reconfigures an already initialized channel.
enum comm_State_vals comm_State_t
This enum holds an enumerated value describing the state of a channel.
isf_status_t dm_channel_release_lock(dm_ChannelDescriptor_t *apChannelDescriptor)
This function releases exclusive channel access.
dm_ChannelDescriptor_t * dm_channel_get_descriptor(dm_DeviceDescriptor_t *apDeviceDescriptor)
This function retrieves the channel descriptor from a device handle.
This structure defines a handle for the device.
This structure is a declaration of a channel descriptor type.
struct dm_ChannelDescriptor_struct dm_ChannelDescriptor_t
This structure is a declaration of a channel descriptor type.
comm_Id_t dm_ChannelId_t
This typedef is a numeric channel identifier index into an array of channels in the system...