ArvGvcp

ArvGvcp — Gvcp packet handling (control)

Synopsis

void                arv_gvcp_packet_free                (ArvGvcpPacket *packet);
ArvGvcpPacketType   arv_gvcp_packet_get_packet_type     (ArvGvcpPacket *packet);
ArvGvcpCommand      arv_gvcp_packet_get_command         (ArvGvcpPacket *packet);
guint16             arv_gvcp_packet_get_packet_count    (ArvGvcpPacket *packet);
void *              arv_gvcp_packet_get_read_memory_ack_data
                                                        (const ArvGvcpPacket *packet);
size_t              arv_gvcp_packet_get_read_memory_ack_size
                                                        (guint32 data_size);
void                arv_gvcp_packet_get_read_memory_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *size);
guint32             arv_gvcp_packet_get_read_register_ack_value
                                                        (const ArvGvcpPacket *packet);
void                arv_gvcp_packet_get_read_register_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address);
size_t              arv_gvcp_packet_get_write_memory_ack_size
                                                        (void);
void *              arv_gvcp_packet_get_write_memory_cmd_data
                                                        (const ArvGvcpPacket *packet);
void                arv_gvcp_packet_get_write_memory_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *size);
void                arv_gvcp_packet_get_write_register_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *value);
void                arv_gvcp_packet_set_packet_count    (ArvGvcpPacket *packet,
                                                         guint16 count);
ArvGvcpPacket * 	   arv_gvcp_packet_new_read_memory_cmd (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_read_memory_ack (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_write_memory_cmd
                                                        (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_write_memory_ack
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_read_register_cmd
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_read_register_ack
                                                        (guint32 value,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_write_register_cmd
                                                        (guint32 address,
                                                         guint32 value,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_write_register_ack
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_discovery_cmd   (size_t *size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_discovery_ack   (size_t *packet_size);
ArvGvcpPacket * 	   arv_gvcp_packet_new_packet_resend_cmd
                                                        (guint32 frame_id,
                                                         guint32 first_block,
                                                         guint32 last_block,
                                                         guint16 packet_count,
                                                         size_t *packet_size);
char * 			          arv_gvcp_packet_to_string           (const ArvGvcpPacket *packet);
void                arv_gvcp_packet_debug               (const ArvGvcpPacket *packet,
                                                         ArvDebugLevel level);
guint16             arv_gvcp_next_packet_count          (guint16 packet_count);

Description

Details

arv_gvcp_packet_free ()

void                arv_gvcp_packet_free                (ArvGvcpPacket *packet);

arv_gvcp_packet_get_packet_type ()

ArvGvcpPacketType   arv_gvcp_packet_get_packet_type     (ArvGvcpPacket *packet);

arv_gvcp_packet_get_command ()

ArvGvcpCommand      arv_gvcp_packet_get_command         (ArvGvcpPacket *packet);

arv_gvcp_packet_get_packet_count ()

guint16             arv_gvcp_packet_get_packet_count    (ArvGvcpPacket *packet);

arv_gvcp_packet_get_read_memory_ack_data ()

void *              arv_gvcp_packet_get_read_memory_ack_data
                                                        (const ArvGvcpPacket *packet);

arv_gvcp_packet_get_read_memory_ack_size ()

size_t              arv_gvcp_packet_get_read_memory_ack_size
                                                        (guint32 data_size);

arv_gvcp_packet_get_read_memory_cmd_infos ()

void                arv_gvcp_packet_get_read_memory_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *size);

arv_gvcp_packet_get_read_register_ack_value ()

guint32             arv_gvcp_packet_get_read_register_ack_value
                                                        (const ArvGvcpPacket *packet);

arv_gvcp_packet_get_read_register_cmd_infos ()

void                arv_gvcp_packet_get_read_register_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address);

arv_gvcp_packet_get_write_memory_ack_size ()

size_t              arv_gvcp_packet_get_write_memory_ack_size
                                                        (void);

arv_gvcp_packet_get_write_memory_cmd_data ()

void *              arv_gvcp_packet_get_write_memory_cmd_data
                                                        (const ArvGvcpPacket *packet);

arv_gvcp_packet_get_write_memory_cmd_infos ()

void                arv_gvcp_packet_get_write_memory_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *size);

arv_gvcp_packet_get_write_register_cmd_infos ()

void                arv_gvcp_packet_get_write_register_cmd_infos
                                                        (const ArvGvcpPacket *packet,
                                                         guint32 *address,
                                                         guint32 *value);

arv_gvcp_packet_set_packet_count ()

void                arv_gvcp_packet_set_packet_count    (ArvGvcpPacket *packet,
                                                         guint16 count);

arv_gvcp_packet_new_read_memory_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_read_memory_cmd (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a memory read command.

address :

read address

size :

read size, in bytes

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_read_memory_ack ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_read_memory_ack (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a memory read acknowledge.

address :

read address

size :

read size, in bytes

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_write_memory_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_write_memory_cmd
                                                        (guint32 address,
                                                         guint32 size,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a memory write command.

address :

write address

size :

write size, in bytes

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_write_memory_ack ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_write_memory_ack
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a memory write acknowledge.

address :

write address

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_read_register_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_read_register_cmd
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a register read command.

address :

write address

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_read_register_ack ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_read_register_ack
                                                        (guint32 value,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a register read acknowledge.

value :

read value

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_write_register_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_write_register_cmd
                                                        (guint32 address,
                                                         guint32 value,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a register write command.

address :

write address

value :

value to write

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_write_register_ack ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_write_register_ack
                                                        (guint32 address,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a register write acknowledge.

address :

write address

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_discovery_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_discovery_cmd   (size_t *size);

Create a gvcp packet for a discovery command.

size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_discovery_ack ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_discovery_ack   (size_t *packet_size);

Create a gvcp packet for a discovery acknowledge.

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_new_packet_resend_cmd ()

ArvGvcpPacket * 	   arv_gvcp_packet_new_packet_resend_cmd
                                                        (guint32 frame_id,
                                                         guint32 first_block,
                                                         guint32 last_block,
                                                         guint16 packet_count,
                                                         size_t *packet_size);

Create a gvcp packet for a packet resend command.

frame_id :

frame id

first_block :

first missing packet

last_block :

last missing packet

packet_count :

current packet count

packet_size :

packet size, in bytes Return value: (transfer full): a new ArvGvcpPacket. [out]

arv_gvcp_packet_to_string ()

char * 			          arv_gvcp_packet_to_string           (const ArvGvcpPacket *packet);

arv_gvcp_packet_debug ()

void                arv_gvcp_packet_debug               (const ArvGvcpPacket *packet,
                                                         ArvDebugLevel level);

arv_gvcp_next_packet_count ()

guint16             arv_gvcp_next_packet_count          (guint16 packet_count);