|
void | adp5589_set_register_value (struct adp5589_dev *dev, uint8_t register_address, uint8_t register_value) |
| Writes data into a register. More...
|
|
uint8_t | adp5589_get_register_value (struct adp5589_dev *dev, uint8_t register_address) |
| Reads the value of a register. More...
|
|
int8_t | adp5589_init (struct adp5589_dev **device, struct adp5589_init_param init_param) |
| Initializes the communication peripheral and checks if the ADP5589 part is present. More...
|
|
int32_t | adp5589_remove (struct adp5589_dev *dev) |
| Free the resources allocated by adp5589_init(). More...
|
|
void | adp5589_init_pwm (struct adp5589_dev *dev) |
| Initializes the PWM generator in continuous mode. More...
|
|
void | adp5589_init_key (struct adp5589_dev *dev, uint8_t pmod_port) |
| Initializes keyboard decoder. More...
|
|
void | adp5589_set_pwm (struct adp5589_dev *dev, uint16_t pwm_off_time, uint16_t pwm_on_time) |
| Sets the PWM On and Off times. More...
|
|
void | adp5589_gpio_direction (struct adp5589_dev *dev, uint8_t reg, uint8_t val) |
| Sets the direction of the pins. More...
|
|
uint8_t | adp5589_get_pin_state (struct adp5589_dev *dev, uint8_t reg) |
| Reads the state of the pins. More...
|
|
void | adp5589_set_pin_state (struct adp5589_dev *dev, uint8_t reg, uint8_t state) |
| Sets the state of the pins. More...
|
|
uint8_t | adp5589_key_decode (uint8_t reg, uint8_t event_type, uint8_t pmod_port) |
| Decodes the key on the Pmod-KYPD. More...
|
|
void | adp5589_key_lock (struct adp5589_dev *dev, uint8_t first_event, uint8_t second_event, uint8_t pmod_port) |
| Locks the ADP5589 and requests Password for unlock. More...
|
|
Implementation of ADP5589 Driver.
- Author
- Mihai Bancisor (Mihai.nosp@m..Ban.nosp@m.cisor.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2012(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.