bpc basic driver modules
More...
bpc basic driver modules
◆ BPC_MAX_RANGE
| #define BPC_MAX_RANGE 0.20f |
bpc max range definition
20%
Definition at line 70 of file driver_bpc.h.
◆ BPC_MAX_START_RANGE
| #define BPC_MAX_START_RANGE 0.20f |
bpc max start range definition
20%
Definition at line 63 of file driver_bpc.h.
◆ bpc_decode_t
bpc decode structure definition
◆ bpc_handle_t
bpc handle structure definition
◆ bpc_info_t
bpc information structure definition
◆ bpc_t
◆ bpc_time_t
bpc time structure definition
◆ bpc_status_t
bpc status enumeration definition
| Enumerator |
|---|
| BPC_STATUS_OK | ok
|
| BPC_STATUS_PARITY_ERR | parity error
|
| BPC_STATUS_FRAME_INVALID | frame invalid
|
Definition at line 76 of file driver_bpc.h.
◆ bpc_deinit()
close the chip
- Parameters
-
| [in] | *handle | pointer to a bpc handle structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 1257 of file driver_bpc.c.
◆ bpc_info()
get chip's information
- Parameters
-
| [out] | *info | pointer to a bpc info structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- Note
- none
Definition at line 1281 of file driver_bpc.c.
◆ bpc_init()
initialize the chip
- Parameters
-
| [in] | *handle | pointer to a bpc handle structure |
- Returns
- status code
- 0 success
- 1 gpio initialization failed
- 2 handle is NULL
- 3 linked functions is NULL
- Note
- none
Definition at line 1198 of file driver_bpc.c.
◆ bpc_irq_handler()
irq handler
- Parameters
-
| [in] | *handle | pointer to a bpc handle structure |
- Returns
- status code
- 0 success
- 1 run failed
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 1124 of file driver_bpc.c.