uint32_t _VISCA_write_packet_data(VISCAInterface_t *iface, VISCACamera_t *camera, VISCAPacket_t *packet) { int i; for ( i=0; i<packet->length; ++i ) { v24Putc(iface->port_fd, packet->bytes[i]); } return VISCA_SUCCESS; }
static int testSendOnly (void) { const unsigned char TestBytes[6]={0xAA,0x55,0xA5,0x5A,0x80,0x01}; int rc, i; for ( i=0; i<6; i++ ) { rc=v24Putc(UsedPort,TestBytes[i]); if ( rc!=V24_E_OK ) { dumpErrorMessage(rc); break; } } if ( i==6 ) puts("send-only: test done!\n"); return (rc==V24_E_OK)?0:1; }