From c0090716995447bd59954c8a7e24cd5c20598f7a Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Thu, 27 Jan 2022 15:47:25 +0000 Subject: deploy: 29fa6052831f8d26815405d4652b5799e3c74147 --- group__gpio.html | 332 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 332 insertions(+) create mode 100644 group__gpio.html (limited to 'group__gpio.html') diff --git a/group__gpio.html b/group__gpio.html new file mode 100644 index 00000000..abce3977 --- /dev/null +++ b/group__gpio.html @@ -0,0 +1,332 @@ + + + + + + + +Sensor Watch: Digital Input and Output + + + + + + + + + +
+
+ + + + + + +
+
Sensor Watch +  0.0.0 +
+
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Digital Input and Output
+
+
+ +

This section covers functions related to general-purpose input and output signals. +More...

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

void watch_enable_digital_input (const uint8_t pin)
 Configures the selected pin for digital input. More...
 
void watch_disable_digital_input (const uint8_t pin)
 Disables any digital input, along with any pull-up or pull-down configuration. More...
 
void watch_enable_pull_up (const uint8_t pin)
 Enables a pull-up resistor on the selected pin. More...
 
void watch_enable_pull_down (const uint8_t pin)
 Enables a pull-down resistor on the selected pin. More...
 
bool watch_get_pin_level (const uint8_t pin)
 Gets the level of the selected pin. More...
 
void watch_enable_digital_output (const uint8_t pin)
 Configures the selected pin for digital output. More...
 
void watch_disable_digital_output (const uint8_t pin)
 Disables digital output on the selected pin. More...
 
void watch_set_pin_level (const uint8_t pin, const bool level)
 Sets the level of the selected pin. More...
 
+

Detailed Description

+

This section covers functions related to general-purpose input and output signals.

+

Function Documentation

+ +

◆ watch_disable_digital_input()

+ +
+
+ + + + + + + + +
void watch_disable_digital_input (const uint8_t pin)
+
+ +

Disables any digital input, along with any pull-up or pull-down configuration.

+
Parameters
+ + +
pinThe pin that you wish to disable.
+
+
+ +
+
+ +

◆ watch_disable_digital_output()

+ +
+
+ + + + + + + + +
void watch_disable_digital_output (const uint8_t pin)
+
+ +

Disables digital output on the selected pin.

+
Parameters
+ + +
pinThe pin that you wish disable.
+
+
+ +
+
+ +

◆ watch_enable_digital_input()

+ +
+
+ + + + + + + + +
void watch_enable_digital_input (const uint8_t pin)
+
+ +

Configures the selected pin for digital input.

+
Parameters
+ + +
pinThe pin that you wish to act as an input.
+
+
+ +
+
+ +

◆ watch_enable_digital_output()

+ +
+
+ + + + + + + + +
void watch_enable_digital_output (const uint8_t pin)
+
+ +

Configures the selected pin for digital output.

+
Parameters
+ + +
pinThe pin that you wish to act as an output.
+
+
+ +
+
+ +

◆ watch_enable_pull_down()

+ +
+
+ + + + + + + + +
void watch_enable_pull_down (const uint8_t pin)
+
+ +

Enables a pull-down resistor on the selected pin.

+
Parameters
+ + +
pinThe pin that you wish to configure.
+
+
+ +
+
+ +

◆ watch_enable_pull_up()

+ +
+
+ + + + + + + + +
void watch_enable_pull_up (const uint8_t pin)
+
+ +

Enables a pull-up resistor on the selected pin.

+
Parameters
+ + +
pinThe pin that you wish to configure.
+
+
+ +
+
+ +

◆ watch_get_pin_level()

+ +
+
+ + + + + + + + +
bool watch_get_pin_level (const uint8_t pin)
+
+ +

Gets the level of the selected pin.

+
Parameters
+ + +
pinThe pin whose value you wish to read.
+
+
+
Returns
true if the pin was logic high; otherwise, false.
+ +
+
+ +

◆ watch_set_pin_level()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void watch_set_pin_level (const uint8_t pin,
const bool level 
)
+
+ +

Sets the level of the selected pin.

+
Parameters
+ + + +
pinThe pin whose value you wish to set.
levelThe level you wish to set: true for high, false for low.
+
+
+ +
+
+
+ + + + -- cgit v1.2.3