GPSD3/Return/DEVICE.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 86.6% 13 / 15 Podpod 100% 12 / 12 totaltotal 87.0% 47 / 54 CC 3 SCAR 5.8
CC
3
Cov
81%
subtype
6.0
driver
2.1
device
2.0
CRAP 1.8
« GPSD3/Return/SKY.pm ↑ Summary GPSD3/Return/GST.pm »
1 package Net::GPSD3::Return::DEVICE;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base qw{Net::GPSD3::Return::Unknown};
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 our $VERSION='0.14';
7  
8 =head1 NAME
9  
10 Net::GPSD3::Return::DEVICE - Net::GPSD3 Return DEVICE Object
11  
12 =head1 SYNOPSIS
13  
14 =head1 DESCRIPTION
15  
16 Provides a Perl object interface to the DEVICE object returned by the GPSD daemon.
17  
18 =head1 METHODS
19  
20 =head2 class
21  
22 Returns the object class
23  
24 =head2 string
25  
26 Returns the JSON string
27  
28 =head2 parent
29  
30 Return the parent L<Net::GPSD3> object
31  
32 =head2 device
33  
34 Name the device for which the control bits are being reported, or for which they are to be applied. This attribute may be omitted only when there is exactly one subscribed channel.
35  
36 =cut
37  
38 0 ▶sub device {shift->{"device"}};
Subroutine device: not called CC=1 SCAR=6.9
Pod documented
39  
40 =head2 driver
41  
42 GPSD's name for the device driver type. Won't be reported before gpsd has seen identifiable packets from the device.
43  
44 =cut
45  
46 2 ▶sub driver {shift->{"driver"}||'none'};
Subroutine driver: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
+(shift())->{"driver"} or "none" 2 0 2
47  
48 =head2 subtype
49  
50 Whatever version information the device returned.
51  
52 =cut
53  
54 0 ▶sub subtype {shift->{"subtype"}||'none'};
Subroutine subtype: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
+(shift())->{"subtype"} or "none" 0 0 0
55  
56 =head2 path
57  
58 =cut
59  
60 2 ▶sub path {shift->{"path"}};
Subroutine path: called CC=1 SCAR=0.0
Pod documented
61  
62 =head2 native
63  
64 0 means NMEA mode and 1 means alternate mode (binary if it has one, for SiRF and Evermore chipsets in particular). Attempting to set this mode on a non-GPS device will yield an error.
65  
66 =cut
67  
68 2 ▶sub native {shift->{"native"}};
Subroutine native: called CC=1 SCAR=0.0
Pod documented
69  
70 =head2 activated
71  
72 Time the device was activated, or 0 if it is being closed.
73  
74 Note: I expect this to change to either a boolean or a timestamp in the 3.5 protocol.
75  
76 =cut
77  
78 2 ▶sub activated {shift->{"activated"}};
Subroutine activated: called CC=1 SCAR=0.0
Pod documented
79  
80 =head2 cycle
81  
82 Device cycle time in seconds.
83  
84 =cut
85  
86 2 ▶sub cycle {shift->{"cycle"}};
Subroutine cycle: called CC=1 SCAR=0.0
Pod documented
87  
88 =head2 mincycle
89  
90 Device minimum cycle time in seconds. Reported from ?CONFIGDEV when (and only when) the rate is switchable. It is read-only and not settable.
91  
92 =cut
93  
94 2 ▶sub mincycle {shift->{"mincycle"}};
Subroutine mincycle: called CC=1 SCAR=0.0
Pod documented
95  
96 =head2 flags
97  
98 Bit vector of property flags. Currently defined flags are: describe packet types seen so far (GPS, RTCM2, RTCM3, AIS). Won't be reported if empty, e.g. before gpsd has seen identifiable packets from the device.
99  
100 =cut
101  
102 2 ▶sub flags {shift->{"flags"}};
Subroutine flags: called CC=1 SCAR=0.0
Pod documented
103  
104 =head2 bps
105  
106 Device speed in bits per second.
107  
108 =cut
109  
110 2 ▶sub bps {shift->{"bps"}};
Subroutine bps: called CC=1 SCAR=0.0
Pod documented
111  
112 =head2 parity
113  
114 N, O or E for no parity, odd, or even.
115  
116 =cut
117  
118 2 ▶sub parity {shift->{"parity"}};
Subroutine parity: called CC=1 SCAR=0.0
Pod documented
119  
120 =head2 stopbits
121  
122 Stop bits (1 or 2).
123  
124 =cut
125  
126 2 ▶sub stopbits {shift->{"stopbits"}};
Subroutine stopbits: called CC=1 SCAR=0.0
Pod documented
127  
128 =head1 BUGS
129  
130 Log on RT and Send to gpsd-dev email list
131  
132 =head1 SUPPORT
133  
134 DavisNetworks.com supports all Perl applications including this package.
135  
136 Try gpsd-dev email list
137  
138 =head1 AUTHOR
139  
140 Michael R. Davis
141 CPAN ID: MRDVT
142 STOP, LLC
143 domain=>michaelrdavis,tld=>com,account=>perl
144 http://www.stopllc.com/
145  
146 =head1 COPYRIGHT
147  
148 This program is free software licensed under the...
149  
150 The BSD License
151  
152 The full text of the license can be found in the LICENSE file included with this module.
153  
154 =head1 SEE ALSO
155  
156 L<Net::GPSD3>
157  
158 =cut
159  
160 3 1;
« GPSD3/Return/SKY.pm ↑ Summary GPSD3/Return/GST.pm »