| 1 | package Lab::Moose::Connection::IsoBus; | ||
| 2 | 1 | $Lab::Moose::Connection::IsoBus::VERSION = '3.881'; | |
| 3 | #ABSTRACT: Connection back end to the Oxford Instruments IsoBus | ||
| 4 | |||
| 5 | 1 | ▶ | use v5.20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use MooseX::Params::Validate; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | has base_connection => ( | |
| 13 | is => 'ro', | ||
| 14 | isa => 'Lab::Moose::Connection' | ||
| 15 | ); | ||
| 16 | |||
| 17 | 1 | has isobus_address => ( | |
| 18 | is => 'ro', | ||
| 19 | isa => 'Int' | ||
| 20 | ); | ||
| 21 | |||
| 22 | sub BUILD { | ||
| 23 | 0 | ▶ | my $self = shift; |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | |||
| 25 | } | ||
| 26 | |||
| 27 | sub set_termchar { | ||
| 28 | 0 | ▶ | my $self = shift; |
|
Subroutine
set_termchar: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 29 | 0 | my %args = @_; | |
| 30 | 0 | my $termchar = delete $args{termchar}; | |
| 31 | |||
| 32 | 0 | $self->base_connection->set_termchar(termchar => $termchar, %args); | |
| 33 | } | ||
| 34 | |||
| 35 | sub enable_read_termchar { | ||
| 36 | 0 | ▶ | my $self = shift; |
|
Subroutine
enable_read_termchar: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 37 | 0 | my %args = @_; | |
| 38 | |||
| 39 | 0 | $self->base_connection->enable_read_termchar(%args); | |
| 40 | } | ||
| 41 | |||
| 42 | |||
| 43 | sub Write { | ||
| 44 | 0 | ▶ | my $self = shift; |
|
Subroutine
Write: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 45 | 0 | my %args = @_; | |
| 46 | 0 | my $cmd = delete $args{command}; | |
| 47 | 0 | $cmd = "\@" . $self->isobus_address() . $cmd; | |
| 48 | 0 | $self->base_connection->Write(command => $cmd, %args ); | |
| 49 | } | ||
| 50 | |||
| 51 | sub Read { | ||
| 52 | 0 | ▶ | my $self = shift; |
|
Subroutine
Read: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 53 | 0 | my %args = @_; | |
| 54 | |||
| 55 | 0 | return $self->base_connection->Read( %args ); | |
| 56 | } | ||
| 57 | |||
| 58 | sub Clear { | ||
| 59 | 0 | ▶ | my $self = shift; |
|
Subroutine
Clear: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 60 | 0 | my %args = @_; | |
| 61 | |||
| 62 | 0 | $self->base_connection->Clear( %args ); | |
| 63 | } | ||
| 64 | |||
| 65 | 1 | with 'Lab::Moose::Connection'; | |
| 66 | |||
| 67 | 1 | __PACKAGE__->meta->make_immutable(); | |
| 68 | |||
| 69 | 1 | 1; | |
| 70 | |||
| 71 | __END__ | ||
| 72 | |||
| 73 | =pod | ||
| 74 | |||
| 75 | =encoding UTF-8 | ||
| 76 | |||
| 77 | =head1 NAME | ||
| 78 | |||
| 79 | Lab::Moose::Connection::IsoBus - Connection back end to the Oxford Instruments IsoBus | ||
| 80 | |||
| 81 | =head1 VERSION | ||
| 82 | |||
| 83 | version 3.881 | ||
| 84 | |||
| 85 | =head1 DESCRIPTION | ||
| 86 | |||
| 87 | Connection backend for the Oxford Instruments IsoBus, a serial protocol | ||
| 88 | connecting several instruments via a bus master. | ||
| 89 | |||
| 90 | =head1 COPYRIGHT AND LICENSE | ||
| 91 | |||
| 92 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||
| 93 | |||
| 94 | Copyright 2021 Andreas K. Huettel, Fabian Weinelt | ||
| 95 | |||
| 96 | |||
| 97 | This is free software; you can redistribute it and/or modify it under | ||
| 98 | the same terms as the Perl 5 programming language system itself. | ||
| 99 | |||
| 100 | =cut | ||