Skip to content

Commit 3fd917e

Browse files
committed
Updates for kernel v3.16.7-ckt10-4-ev3dev-ev3 and ev3dev-jessie-2015-05-01.img
1 parent 516787c commit 3fd917e

67 files changed

Lines changed: 263 additions & 143 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_data/sensors.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,16 @@
184184
{
185185
"cmd_info": [
186186
{
187-
"description": "Reset angle values",
187+
"description": "Reset accumulated angle",
188188
"id": "0",
189189
"name": "RESET"
190+
},
191+
{
192+
"description": "Reset accumulated angle and save to EEPROM",
193+
"id": "1",
194+
"name": "CAL",
195+
"name_footnote": "[^calibrate]",
196+
"notes": "\n[^calibrate]: When Calibrating the sensor wait\n least 25ms before further reads from the sensor.\n That means disable polling by setting `poll_ms`\n to 0 before sending this command.\n \n "
190197
}
191198
],
192199
"default_address": "0x01",
@@ -195,6 +202,11 @@
195202
"cmd_data": "0",
196203
"cmd_reg": "0",
197204
"id": "0"
205+
},
206+
{
207+
"cmd_data": "0",
208+
"cmd_reg": "0",
209+
"id": "1"
198210
}
199211
],
200212
"i2c_mode_info": [
@@ -228,7 +240,7 @@
228240
"description": "Accumulated angle",
229241
"figures": "9",
230242
"id": "1",
231-
"name": "ACCEL",
243+
"name": "ANGLE-ACC",
232244
"raw_max": "INT_MAX",
233245
"raw_min": "INT_MIN",
234246
"si_max": "INT_MAX",
@@ -252,7 +264,7 @@
252264
}
253265
],
254266
"name": "ht-nxt-angle",
255-
"num_commands": "1",
267+
"num_commands": "2",
256268
"num_modes": "3",
257269
"product_id": "AnglSnsr",
258270
"sensor_type": "nxt-i2c-sensor",
@@ -2750,22 +2762,18 @@
27502762
"i2c_mode_info": [
27512763
{
27522764
"id": "0",
2753-
"pin1_state": "LEGO_PORT_GPIO_HIGH",
27542765
"read_data_reg": "0"
27552766
},
27562767
{
27572768
"id": "1",
2758-
"pin1_state": "LEGO_PORT_GPIO_HIGH",
27592769
"read_data_reg": "0"
27602770
},
27612771
{
27622772
"id": "2",
2763-
"pin1_state": "LEGO_PORT_GPIO_HIGH",
27642773
"read_data_reg": "0"
27652774
},
27662775
{
27672776
"id": "3",
2768-
"pin1_state": "LEGO_PORT_GPIO_HIGH",
27692777
"read_data_reg": "0"
27702778
}
27712779
],

docs/drivers/dc-motor-class.markdown

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/motors/dc_motor_class.c
55
title: DC Motor Class
66
---
@@ -43,17 +43,31 @@ setpoint.
4343
`port_name` (read-only)
4444
: Returns the name of the port that the motor is connected to.
4545

46-
`ramp_down_ms` (read/write)
46+
`state` (read-only)
47+
: Gets a space separated list of flags indicating the motor status. Possible
48+
flags are `running` and `ramping`. `running` indicates that the motor is
49+
powered. `ramping` indicates that the motor has not yet reached the
50+
`duty_cycle_sp`.
51+
52+
`stop_command` (write-only)
53+
: Sets the stop command that will be used when the motor stops. Read
54+
`stop_commands` to get the list of valid values.
55+
56+
`stop_commands (read-only)
57+
: Gets a space separated list of stop commands. Valid values are `coast`
58+
and `brake`.
59+
60+
`ramp_down_sp` (read/write)
4761
: Sets the time in milliseconds that it take the motor to ramp down from 100%
48-
to 0%. Valid values are 0 to 10000 (10 seconds). Default is 0. If the
49-
controller does not support ramping, then reading and writing will fail
50-
with -EOPNOTSUPP.
62+
to 0%. Valid values are 0 to 10000 (10 seconds). Default is 0.
5163

52-
`ramp_up_ms` (read/write)
64+
`ramp_up_sp` (read/write)
5365
: Sets the time in milliseconds that it take the motor to up ramp from 0% to
54-
100%. Valid values are 0 to 10000 (10 seconds). Default is 0. If the
55-
controller does not support ramping, then reading and writing will fail
56-
with -EOPNOTSUPP.
66+
100%. Valid values are 0 to 10000 (10 seconds). Default is 0.
67+
68+
`time_sp`: (read/write)
69+
: Sets the time setpoint used with the `run-timed` command. Units are in
70+
milliseconds.
5771

5872
[supported devices]: /docs/motors/#supported-devices
5973

docs/drivers/ev3-analog-sensor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/ev3_analog_sensor_core.c
55
title: EV3 Analog Sensor Driver
66
---

docs/drivers/ev3-uart-sensor-ld.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/ev3_uart_sensor_ld.c
55
title: EV3 UART Sensor Line Discipline
66
---

docs/drivers/ht-nxt-smux-i2c-sensor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/ht_nxt_smux_i2c_sensor.c
55
title: HiTechnic NXT Sensor Multiplexer I2C sensor driver
66
---

docs/drivers/lego-port-class.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/core/lego_port_class.c
55
title: LEGO Port Class Driver
66
---

docs/drivers/lego-sensor-class.markdown

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/lego_sensor_class.c
55
title: LEGO Sensor Class
66
---
@@ -16,10 +16,10 @@ if needed by `value<N>` / 10.0 ^ `decimals`.
1616
### Identifying sensors
1717

1818
Since the name of the `sensor<N>` device node does not correspond to the port
19-
that a sensor is plugged in to, you must look at the port_name attribute if
19+
that a sensor is plugged in to, you must look at the `port_name` attribute if
2020
you need to know which port a sensor is plugged in to. However, if you don't
2121
have more than one sensor of each type, you can just look for a matching
22-
`name`. Then it will not matter which port a sensor is plugged in to - your
22+
`driver_name`. Then it will not matter which port a sensor is plugged in to - your
2323
program will still work.
2424

2525
### sysfs Attributes
@@ -28,11 +28,10 @@ Sensors can be found at `/sys/class/lego-sensor/sensor<N>`, where `<N>` is
2828
incremented each time a sensor is loaded (it is not related to which port
2929
the sensor is plugged in to).
3030

31-
`bin_data` (read/write)
32-
: Reading the file will give the same values in the `value<N>` attributes.
33-
Use `bin_data_format` and `num_values` to determine how to interpret
34-
the data. Writing will write data to the sensor (I2C, UART and NXT
35-
Color sensors only).
31+
`bin_data` (read-only)
32+
: Reading the file will give the unscaled raw values in the `value<N>`
33+
attributes. Use `bin_data_format`, `num_values` and the individual sensor
34+
documentation to determine how to interpret the data.
3635

3736
`bin_data_format` (read-only)
3837
: Returns the format of the values in `bin_data` for the current mode.
@@ -53,6 +52,13 @@ Possible values are:
5352
: Returns a space separated list of the valid commands for the sensor.
5453
Returns -EOPNOTSUPP if no commands are supported.
5554

55+
`direct` (read/write)
56+
: Allows direct communication with the sensor for using advanced features
57+
that are not otherwise available through the lego-sensor class. Returns
58+
`-EOPNOTSUPP` if the sensor does not support this. Currently this only
59+
works with I2C sensors. For I2C sensors, use `seek` to set the register
60+
to read or write from, then read or write the number of bytes required.
61+
5662
`decimals` (read-only)
5763
: Returns the number of decimal places for the values in the `value<N>`
5864
attributes of the current mode.

docs/drivers/legoev3-ports.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/ev3/legoev3_ports_core.c
55
title: EV3 Input and Output Ports
66
---

docs/drivers/nxt-analog-sensor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/nxt_analog_sensor_core.c
55
title: NXT Analog Sensor Driver
66
---

docs/drivers/nxt-i2c-sensor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
autogen: This file was automatically generated by kernel-doc-text-to-markdown.py
3-
kernel_version: 3.16.7-ckt9-ev3dev1
3+
kernel_version: 3.16.7-ckt10-4-ev3dev-ev3
44
source_file: drivers/lego/sensors/nxt_i2c_sensor_core.c
55
title: NXT I2C Sensor Driver
66
---

0 commit comments

Comments
 (0)