LibDriver CS1237
Loading...
Searching...
No Matches
cs1237 extern driver function

cs1237 extern driver modules More...

Collaboration diagram for cs1237 extern driver function:

Functions

uint8_t cs1237_set_command (cs1237_handle_t *handle, uint8_t command, uint8_t config)
 set command
uint8_t cs1237_get_command (cs1237_handle_t *handle, uint8_t command, uint8_t *config)
 get command
uint8_t cs1237_get_data (cs1237_handle_t *handle, int32_t *data)
 get data

Detailed Description

cs1237 extern driver modules

Function Documentation

◆ cs1237_get_command()

uint8_t cs1237_get_command ( cs1237_handle_t * handle,
uint8_t command,
uint8_t * config )

get command

Parameters
[in]*handlepointer to a cs1237 handle structure
[in]commandinput command
[out]*configpointer to a configuration buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1390 of file driver_cs1237.c.

◆ cs1237_get_data()

uint8_t cs1237_get_data ( cs1237_handle_t * handle,
int32_t * data )

get data

Parameters
[in]*handlepointer to a cs1237 handle structure
[out]*datapointer to a data buffer
Returns
status code
  • 0 success
  • 1 get data failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1423 of file driver_cs1237.c.

◆ cs1237_set_command()

uint8_t cs1237_set_command ( cs1237_handle_t * handle,
uint8_t command,
uint8_t config )

set command

Parameters
[in]*handlepointer to a cs1237 handle structure
[in]commandinput command
[in]configinput configuration
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1356 of file driver_cs1237.c.